Cannot write a crontab to system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crontab |
Fix Released
|
Low
|
Martin Owens |
Bug Description
Hi,
I am trying to execute the following lines of code:
comment = '# Comment'
filename = 'filename.tab' if any(platform.
if filename:
cron = CronTab(
else:
cron = CronTab(
custom_cmd = ' my_cli_name action'
job = cron.new(
job.
job.enable()
cron.write()
Once it gets to the write() function it fails on read() with error:
IOError: Read crontab drivard: crontab: must be privileged to use -u
I can from the shell create the cron without a problem.
Environment:
Mac OS Yosemite
pip show python-crontab
---
Name: python-crontab
Version: 1.9.3
How can I make it write to the user crontab?
Regards
Dominick
Changed in python-crontab: | |
status: | Triaged → Fix Committed |
milestone: | none → 2.0 |
Changed in python-crontab: | |
status: | Fix Committed → Fix Released |
I previously said it was doing the same error on ubuntu, but I was wrong I retested it and it works on Ubuntu 14.04
Thanks