Posts tagged ‘schedule command’

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)