Hi All,
I've written a program which is in /home/fox/log.py, and i want to execute it at 10:30 am.
The program checks some system statistics like uptime, and creates a log file called system.log, in the directory where the log.py file is.
in my crontab (crontab -e), i have:
Code:
30 10 * * * /home/fox/log.py
the python code is executed ok, but the log file isn't created. (it is if i execute it manually though).
Any ideas how to get it working? i've tried writing a bash script:
Code:
#!/usr/bin/python /home/fox/log.py
setting it executable, and running that from cron. but i get the same results.
help please!
thanks for reading.
Bookmarks