at - command to schedule actions
One of the most uses I give to this command is to turn the PC off after some time, sure there are other ways.
I like the way you may execute batch jobs at a given time, all you need is:
1. Write your shell script
Which actually is a list of commands in a text file
2. Execute the at command
at now + 5 minutes < $HOME/listofcommands.txt
You can use times like "now", "noon", "midnight", or a date in the format of DD.MM.YY
check man at in order to have more details
Trackback URL for this post:
This story has been submitted to fsdaily.com! If you think this story should be read by the free software community, come vote it up and discuss it here:
http://www.fsdaily.com/Beginner/at_command_to_schedule_actions
If you like this article, subscribe to our full rss
Please post your question in our forum and use comments only to leave your comments about the article, thanks.













Thanks - I knew about the at
Thanks - I knew about the at command - but did not know about the 'now' argument.
Thanks, I didn't know it
Thanks, I didn't know it accepted DD.MM.YY.
hi, I recieved this
hi,
I recieved this error
at now + 5 minutes < salida.sh
warning: commands will be executed using /bin/sh
Cannot open lockfile /var/spool/cron/atjobs/.SEQ: No such file or directory
any idea ?
thanks
Post new comment