atjob hscript command
Execute commands at a future time.
Usages
atjob [-p] seconds commandatjob -latjob -r id [id2 ...]atjob -r all
atjob schedules a command to be run n number of seconds from now, or every n seconds.
Note | Jobs only work correctly inside graphical applications. |
Note | The job runs at the application’s first opportunity. If the application is very busy (for example, rendering), the job is not guaranteed to run on time. |
Options
-p | Periodic: run the command repeatedly at the given interval. |
-l | Print all pending jobs. |
-r id [id2 ...] | Remove a pending job (prevent it from running). You can specify the ID of a pending job. |
-r all | Remove all pending jobs. |
Examples
Run “write -i” in 300 seconds (5 minutes).atjob 300 mwrite -i
Run “mwrite -i” every 10 seconds.atjob -p 10 mwrite -i
