How do you add a scheduler task to runs a task (once only) in say, one hour from now?
Eg:
/system scheduler add name=okThatsEnoughInternetForToday on-event="/sys script run [find name=\"okThatsEnoughInternetForTodayScript\"]" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=[/system clock get date] start-time=[/system clock get time + 1h]
You can include in a script that runs after a hour to deactivate this task. On reboot you have a other task/script that activates this task again with a very long repeat.
Not quite what I’m chasing, unfortunately. I don’t want to run the script now, and again in 60 mins time - I just want to run it once, in 60 mins time. I guess I can always just use the delay command and leave the script running…
You could create a scheduled task using SSH and generate the due date based on the local clock. Furthermore you have to create another scheduled task the removes the first one let’s say 1min after the first one has been executed. Should be fairly straightforward