Use “at” to schedule launching of commands in Linux

You can execute a task at the time you want it to launch by using at. Let’s say you want mplayer start playing a movie at 12:42. Do a

at 1242

A command prompt will appear where you can type the command you cant to execute at 12:42

mplayer movie.avi

Next, press Enter then press Ctrl+D to exit the command line. The job will run in the background and will execute the command at the time requested.
You can always view a list of scheduled commands with at -l or remove a task with atrm 1 (where 1 is the job ID given by at -l).

Share:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • DZone
  • LinkedIn
  • Reddit
  • StumbleUpon
  • Twitthis
This entry was posted in cli, Syndicated, System. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree