1

My code looks like this at the moment but i get the error; 'TypeError: init() missing 1 required positional argument: 'crontab''

from crontab import CronTab
cron = CronTab()
job = cron.new(command='users/filelocation.py')
job.setall('55 10 15 11 2')

If anyone could help out it would be appreciated, thanks

Ade Stringer
  • 2,611
  • 17
  • 28
George
  • 11
  • 2
  • 4
    I think you have installed wrong module *crontab*. You should install *python-crontab*. – acw1668 Nov 15 '16 at 11:53
  • Try reading http://stackoverflow.com/questions/32620394/running-a-cronjob-only-one-using-python-crontab and http://blog.appliedinformaticsinc.com/managing-cron-jobs-with-python-crontab/. – boardrider Nov 15 '16 at 18:56

0 Answers0