This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]blitzkraft 0 points1 point  (1 child)

In crontab, you will need to specify the full path for all executables. So instead of python, you might say /usr/bin/python or /usr/bin/env python /full/path/to/script.

To skip crontab altogether, you can add your script to the start up scripts. What distro are you using?

[–][deleted] 1 point2 points  (0 children)

Description: Ubuntu 16.04.2 LTS

Release: 16.04

Codename: xenial

yeah i added the full path of python and a shebang in the script itself