Here iare two scripts that I set up to run at 9:00 pm daily:
If [ Get(HostName)="Harriet" ] Install OnTimer Script [ “Imported all Records”; Interval: GetAsNumber ( Time ( 21 ; 0 ; 0 ) ) - GetAsNumber ( Get ( CurrentTime ) ) ] //Harriet is the name of my Server
Here is the script "Imported all Records"
Perform Script [ “Import Drivers” ]
Perform Script [ “Import Addresses” ]
Perform Script [ “Import Passengers” ]
Perform Script [ “Import Schedule” ]
Set Field [ Schedule::g.backupCounter; Schedule::g.backupCounter+1 ]
Set Field [ Schedule::g.backupCounterTime; Get ( CurrentTimeStamp ) ]
Here's the problem:
The script runs more than once. The first time it ran over 30 times.
Even more confusing is the time stamp had a time of 10:38
The second day it ran multiple times and was timestamped at around 3:00 in the afternoon.
Any thoughts would be appreciated.