Enter your email address:

Delivered by FeedBurner

at - command to schedule actions


StumbleUpon Toolbar

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:

http://www.go2linux.org/trackback/507
from fsdaily.com on Sat, 08/09/2008 - 11:32

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

StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

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

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting