running python scripts via crontab

Mr SZ sk8in_zombi at yahoo.com.au
Sat Jun 9 09:10:38 EDT 2007


Hello all,
 I wrote a simple python script to send mail via smtp to my gmail acc.I can run it as python /home/phil/Desktop/smtp.py but when I add the same to my crontab as

          * * * * * /usr/bin/python2.5 /home/phil/Desktop/smtp.py

 ,it doesn't run.I checked the process by using top command and python did start a thread but died soon.
 
 I need some help here.
 
The python script uses tls-lite lib to use tls over smtp.


" life isn't heavy enough,it flies away and floats far above action"
 	      
---------------------------------
How would you spend $50,000 to create a more sustainable environment in Australia?  Go to Yahoo!7 Answers and share your idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070609/172bab14/attachment.html>


More information about the Python-list mailing list