crontab -l error msgs are printed on screen, if no previous crontab file exists for user
Bug #1178167 reported by
Roy Rothenberg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crontab |
Fix Released
|
Low
|
Martin Owens |
Bug Description
On Linux and Solaris (and perhaps other platforms as well), when creating a cron for a user which previously had no crontab file, a text is written to stderr, and therefore to screen/console.
For example, in linux the message is:
no crontab for root
The solution is probably to replace the line in the Crontab.read method:
p = sp.Popen(
With the line:
p = sp.Popen(
And then the msg isn't displayed on screen (unless you choose to display it).
I tried this on a local copy, and it works perfectly.
Related branches
Changed in python-crontab: | |
importance: | Undecided → Low |
assignee: | nobody → Martin Owens (doctormo) |
status: | New → Fix Committed |
Changed in python-crontab: | |
status: | Fix Committed → Fix Released |
Changed in python-crontab: | |
milestone: | none → 1.3 |
To post a comment you must log in.
To be clear - AFAIK this is not a regression, and is consistent with the module's behaviour in previous versions.