PDA

View Full Version : manpage info for crontab



lsatenstein
12th June 2007, 04:48 AM
The documentation of the fields and there sequences is missing.
How do I build a crontab. Here is some answers.
Some info from wiki, others from my memory, other from my research
What is undefined is the poweroff command action with the -h parameter.
What happens when the disk is a sata.?
sorry about thre reformatting
################################################## ###################################
# *, if one of the m h dom mon dow fields owns the * character,
# then it indicates every minute or every hour or every day or
# every day of the month or every month or every day of the week,
# it depends on which field is placed *.
# / permits to specify a repetition.
# - permits to define a range.
# , permits to specify several values.
#
# EXAMPLES
#
#*/5 * * * * command to execute a command every 5 minutes.
#
#0 22 * * 1-5 command to execute a command every day, monday to friday, at 10 p.m.
#
#17 19 1,15 * * command means the first and the fifteenth day of the month at 19h17 (7.17 p.m.)
#
#23 0-16/2 * * * command means every 2 hours at the twenty-third minute,
# between midnight and 16h00 (4.00 p.m.)
#
################################################## #############################################
#
# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-7 with 0=7=Sunday).
# | | | | | command(s)
# | | | | | |
*/5 01 * * * system going down at 2:30
30 02 * * * poweroff now

ankit
12th June 2007, 09:36 AM
What do you want to do exactly?
create a cronjob OR cronjob of what exactly OR modify the crontab manual?

lsatenstein
13th June 2007, 05:59 PM
My posting was to show that the man page for crontab is terribly deficient and as well, it is deficient in Info

I had to research with google to find out the format of the crontab table. I didnt find it in the linux man pages.

Documentation shortcoming being what it was, I posted my research.

markkuk
13th June 2007, 06:34 PM
The crontab file format is documented in the section 5 of the manual like other file formats, use "man 5 crontab" to read the page. Plain "man crontab" shows the documentation of the crontab command from section 1 of the manual. There's a cross-reference to the file format page in the "See Also" paragraph of the command documentation.