I have written a python script which is reading some logs and then writing the required info into a csv file.Its working fine if I execute it manually by python myscript.py
.However when I m calling it through cron its not working.
I have tried:
* * * * * python /path/to/myscript.py
* * * * * /path/to/myscript.py
* * * * * /usr/bin/python /path/to/myscript.py
After some failed attempts I put python myscript.py
in a shell script and ran it manually,it worked but again in cron it did not.