cron, at by example b4 rtfm

want to use cron? first create a script

apt-get update

and create mycron.txt(or w'ever name u want), add:

30 23 * * * /home/bambino/script

will run script on 11.30pm everyday. finally, `crontab mycron.txt` as root

want to use at? just `at 11pm 2days`, then enter your commands.

bambino:/home/bambino# at 11pm + 2days
warning: commands will be executed using /bin/sh
at> apt-get update
at> [^D]
job 4 at 2007-01-22 16:00

will run update apt 2days later at 11pm.
to list jobs, `atq`
to show spec. job, `at -c [jobnumber]`

No comments:

Post a Comment