I am trying to run a python script using cron. It runs flawlessly when I run it from the command line, eg:
python path/to/file/myscript.py. However, if I set up a cron job, eg:
/2 * * * * python path/to/file/myscript.py it will not run. I have made the script executable and changed permissions. The next thing I can think of is to have cron run a bash script that opens the python script, but that seems unnecessary. Any insights would be appreciated!