Bug 468623 - Enhancement request: comments to add to crontab
Summary: Enhancement request: comments to add to crontab
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: crontabs
Version: 5.2
Hardware: All
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: Marcela Mašláňová
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-26 20:42 UTC by Todd
Modified: 2016-07-19 00:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-03 15:22:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 3212 0 None None None Never

Description Todd 2008-10-26 20:42:11 UTC
Hi All,

This is an enhancement request.  (Couldn't find "enhancement" on the
severity drop down, so I picked "low").

Please reference CentOS bugzilla: http://bugs.centos.org/view.php?id=3212
(CentOS told me to report this to you).

Every time I go to use /etc/crontab, I forget how to use it. It is
a bit of a pain in the neck to always have to open the manual page.

To combat this, I insert the below comments in all my crontab file. It is
very helpful. Would you please consider adding it to the default crontab,
so as to help other folks the way these comments have helped me?

Many thanks,
-T


# The time and date fields are:
#
# field allowed values
# ----- --------------
# minute 0-59
# hour 0-23
# day of month 1-31
# month 1-12 (or names)
# day of week 0-7 (0 or 7 is Sun, or names)
#
# Asterisk (*) = first-last (wild)
#

Comment 1 Marcela Mašláňová 2008-12-03 15:22:48 UTC
That is for what manual pages are.

Anyway '/etc/crontab' usually includes some cron jobs, which could give you hint.

Comment 2 Todd 2016-07-19 00:07:10 UTC
I just noticed that you guys did accept this and have incorporated it into both Fedora 24 and EL 7.2

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed



Very cool.  I have already used it a few times.  THANK YOU!

-T


Note You need to log in before you can comment on or make changes to this bug.