4.7 Scheduling One-Time Tasks with At

4.7 Scheduling One-Time Tasks with At

If you want to run a job in the future but don't want to use cron because the command should only run once, you can do it with the at service. For example, if you want to run myjob at 10:30 PM, enter this command:

 at 22:30 myjob 

End the input with a CONTROL-D ( at reads the commands from the standard input).

To check that the job has been scheduled, use atq , or to remove it, use atrm . You also can schedule jobs days into the future by adding the date (in DD.MM.YY format; for example, at 22:30 30.09.03 ).

There isn't too much else to the at command. at actually does not see much use in common practice. However, it can be handy for the odd time that you need to shut the system down in the future.

How Linux Works
How Linux Works: What Every Superuser Should Know
ISBN: 1593270356
EAN: 2147483647
Year: 2004
Pages: 189
Authors: Brian Ward

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net