>> > I've a problem about crond.
>> > Supposing I have to run a program every day at 3 a.m., how can I tell it
>> > to crond?
>> > Thanks
>> > Guido
>> man cron
>> man crontab
>I tried both, but I they wsn't clear at all... at least for me....
Try an "apropos cron". This returns a list of all man pages that
reference cron. On my machine, I get:
$ apropos cron
cron (8) - daemon to execute scheduled commands (Vixie Cron)
crontab (1) - maintain crontab files for individual users (V3)
crontab (5) - tables for driving cron
And this might be where you are getting confused. There are _two_ manpages
titled crontab, one in section 1 referring to the crontab editing utility,
and one in section 5, referring to the crontab file layout. Since most
Unix novices are unaware that man pages are organized in sections, or
that there can be multiple man pages with the same name in different
sections, doing a "man crontab" is probably going to confuse many of
Try "man 5 crontab" to get the man page that describes the file format
you need to use, try a "man 1 crontab" to get the man page that describes
the tool you use to edit your crontab.
Or, as a quick example, type "crontab -e", which will bring up your
current crontab in your default editor. Add a line like this:
0 3 * * * /usr/bin/the-program-i-want-to-run
First field is minutes, second is hours, third is day of month,
fourth is month of year, fifth is day of week, * means any.
0 3 * * * means every day of every month at 03:00.
It is practically impossible to teach good programming style to students
that have had prior exposure to BASIC: as potential programmers they are
mentally mutilated beyond hope of regeneration.
-- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5