I have the following entry in crontab:
* * * * * python -c "import datetime; datetime.datetime.now()" >> /home/myname/pythoncron1.log
The pythoncron1.log file is being created but has nothing in it and the file modified date has not bee updated since the file was created. I was expecting to see a bunch of lines in the file, one for every minute that the cron job was is run.
Why might this not be working?
(You may have guessed, I'm trying to do something a little more complicated than the example above but I've narrowed the problem down to python apparently failing to run when being invoked by cron).