Python script not getting executed when put on crontab
<p>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 <code>myscript.py</code> .However when I m calling it through cron its not working.
I have tried:</p>

<pre><code>* * * * * python /path/to/myscript.py
* * * * * /path/to/myscript.py
* * * * * /usr/bin/python /path/to/myscript.py
</code></pre>

<p>After some failed attempts I put python <code>myscript.py</code> in a shell script and ran it manually,it worked but again in cron it did not.</p>