[SATLUG] Quiz time!
Ed Coates
edcoates at gmail.com
Thu Aug 2 12:32:38 CDT 2007
On 8/2/07, Thomas King <kingttx at tomslinux.homelinux.org> wrote:
> Sorry about that last send. :|
>
> Let's take a look at automating when commands and scripts are run using cron. If
> you are not familiar with cron, I would suggest looking up some tutorials on
> this tool. Even regular users would benefit from using it.
>
> Part 1: What is the command and switches for editing the crontab file and
> listing the crontab jobs?
crontab -e for editing and crontab -l for listing
>
> Part 2: When will this script be run?
> 36 5 12 6 * /script/file
>
Every June 12th at 5:36 AM
> Part 3: Where would you put a script if you simply needed it to be run hourly,
> daily, weekly, and/or monthly without needing to create a crontab entry? The
> answer should have a separate location for each time period.
>
/etc/cron.hourly
/etc/cron.daily
/etc/cron.weekly
/etc/cron.monthly
> Part 4: Where would regular users put their crontab entries?
> --
when they edit and save them, they get stored in
/var/spool/cron/crontabs, but it may vary between distros and/or cron
programs
Ed
More information about the SATLUG
mailing list