Scheduling a task to start X mins/hours from now (not interval)

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

@wirSeefahrer can you please write example of this

You could create a scheduled task using SSH and generate the due date based on the local clock

, how to set due date 23h 55mins from now?
@destr0y have you done it and how?
Or anybody else?
Thanks in advance

You can do one-timer @destroy

with interval 00:00:00 means that → will run just once

example (prepared script named “reb”, just don’t set interval to make it one-timer):

/system scheduler
add name=upd on-event="sys script run reb" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=apr/02/2023 start-time=12:57:50