Home Reference HScript commands 

atjob hscript command

Execute commands at a future time.

Usages

  1. atjob [-p] seconds command

  2. atjob -l

  3. atjob -r id [id2 ...]

  4. 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

atjob 300 mwrite -i
Run “write -i” in 300 seconds (5 minutes).

atjob -p 10 mwrite -i
Run “mwrite -i” every 10 seconds.