|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I have a application that runs based on real time and it's function is to run multiple scheduled tasks on suse linux from a variety of different applications that look at the OS system time.
I want to simulate what will happen in 1 day within 1 hour. So i would like to get some ideas on what i should look out for or how i should go about this. I was thinking i could setup my own NTP server and run a ntpdate command to update the time to fast forward to my simulated time. But i think i will run into many issues with cronjobs not getting run and other systems not running tasks because the time skipped the exact time required to run that task. OR i could run hwclock --set --date=11:30 every 5 seconds but i still might get the same problems. How can i control the system time directly and simulate Time for every second just faster? Thanks
__________________
..,.,.,,. C 'C' C > * < |
|
#2
|
|||
|
|||
|
At the risk of sounding really silly, just what is the time pressure involved whereby you cannot afford to just let them run normally?
__________________
"I feel so miserable without you; it's almost like having you here" - Stephen Bishop |
|
#3
|
||||
|
||||
|
Quote:
The time pressure is in place because we would like to simulate the system of events for a week or month withing a working days time frame, this will be used for training users to use the system. i was thinking of using something like NIST and modify it not to loop at a NTP but rather my settings that feed the time increment. but will the tasks still run ? |
|
#4
|
|||
|
|||
|
Your major issue with ntp would be if the server and time server times diverge by too much the ntp client will pack it's bags up and go home. I'm not sure just at what point that would be, plus ntp generally uses gentle increments to adjust time, it sounds like you want to compress stuff down to a marked degree.
If this is just running on a single server it sound like you may want to 'just' have something to, every now and again jump the time forward - say every 10 minutes skip ahead 30 mins? |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How do i Simulate System Time and fast forward it? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|