Schedule commands to run later on Linux and Mac

For scheduling periodical tasks you have Cron. But if you just want to schedule a command to run later you can use at.

# at 12:00
# at> echo “Scheduled phrase”|mail addr@provider.com
# at> (type control+d)
job 6 scheduled at 2009-06-16 12:00

You can see the scheduled tasks with atq and remove them with atrm

# atq
6 2009-06-16 12:00 a root
# atrm 6 (where 6 is the task id)

Share this post:

  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Related posts:
  1. Recover the root password on Linux
  2. Setting up an IPv6 Bind DNS Server on Linux
  3. Mac4lin brings the beauty of the Mac to the Linux desktop

Leave a Reply