Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 239967 - Crontab misinterprets Sat-Sun for days
Crontab misinterprets Sat-Sun for days
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: crontabs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Marcela Mašláňová
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2007-05-13 11:25 EDT by Thomas Schwanhäuser
Modified: 2007-11-16 20:14 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-15 06:36:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thomas Schwanhäuser 2007-05-13 11:25:35 EDT
Description of problem:

One can not specify a job to be run on Saturdays and Sundays with "Sat-Sun",
although specifing a job with "6-7" works fine.

Version-Release number of selected component (if applicable):

crontab: ISC Cron V4.1

How reproducible:


Steps to Reproduce:

1. edit crontab file with "crontab -e", add a new job line like

15 15 * * 6-7 <any command>

Save the file. --> Works as expected

2. edit crontab file with "crontab - e", add a new job line 

15 15 * * Mon-Fri <any command>

Save the file. --> Works as expected

3. edit crontab file with "crontab - e", add a new job line 

15 15 * * Sat-Sun <any command>

Save the file. --> Error:

"/tmp/crontab.XXXXwZB0Kv":45: bad day-of-week
errors in crontab file, can't install.

Actual results:


Expected results:

to be accepted and job performed every Saturday and Sunday
Comment 1 Marcela Mašláňová 2007-05-15 06:36:06 EDT
in Europe we're using day of week Monday, Tuesday, ..., Sunday, but in USA are
using Sunday, Monday,... so it's impossible for cron to do jobs from Sunday to
I'm suggesting: 
15 15 * * sat,sun <some job>


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