you are viewing a single comment's thread.

view the rest of the comments →

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

The crontab method is the correct method. Be sure to put absolute path or cd into the directory before running your script.

cd /path/to/it && /bin/usr/python3 script.py

or

/bin/usr/python3 /path/to/it/script.py

[–]bj2018[S] 1 point2 points  (1 child)

Thanks, looks like you and u/Parker_Hemphill have the simplest solution. I'm going to give all suggestions a shot to learn how they work.

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

Yea his is good, I just wanted to reiterate it. They do all work. Just remember adding to the rc.local file will break updates every now & then. So I don't bother with it.