/etc/crontab won't run my script

2009-04-24 Thread Ghirai
Hi, I'm trying to get a python script to run from /etc/crontab, but it won't work. I've read about the most common issues being related to paths, but my script uses no paths at all. This is my /etc/crontab line: */5 * * * * munin /usr/local/bin/python /root/myscript.py

Re: /etc/crontab won't run my script

2009-04-24 Thread Ghirai
On Fri, 24 Apr 2009 18:08:13 +0300 Ghirai ghi...@ghirai.com wrote: Hi, I'm trying to get a python script to run from /etc/crontab, but it won't work. I've read about the most common issues being related to paths, but my script uses no paths at all. This is my /etc/crontab line: */5

Re: /etc/crontab won't run my script

2009-04-24 Thread Glen Barber
On Fri, Apr 24, 2009 at 11:14 AM, Ghirai ghi...@ghirai.com wrote: Ok i just changed 'who' column to root and it works. Why won't it work as any other user? Permissions for myscript.py are 555. Who owns the file? -- Glen Barber ___

Re: /etc/crontab won't run my script

2009-04-24 Thread Ghirai
On Fri, 24 Apr 2009 11:17:13 -0400 Glen Barber glen.j.bar...@gmail.com wrote: On Fri, Apr 24, 2009 at 11:14 AM, Ghirai ghi...@ghirai.com wrote: Ok i just changed 'who' column to root and it works. Why won't it work as any other user? Permissions for myscript.py are 555. Who owns the

Re: /etc/crontab won't run my script

2009-04-24 Thread Martin McCormick
Usually, when cron tries to run something unsuccessfully, an error message goes to root. You might look at root's mail to see if there are any complaints regarding this script. They could be anything from path-related troubles to permissions, etc. The mail may also be going to the user defined in

Re: /etc/crontab won't run my script

2009-04-24 Thread Jerry McAllister
On Fri, Apr 24, 2009 at 06:14:26PM +0300, Ghirai wrote: On Fri, 24 Apr 2009 18:08:13 +0300 Ghirai ghi...@ghirai.com wrote: Hi, I'm trying to get a python script to run from /etc/crontab, but it won't work. I've read about the most common issues being related to paths, but my

Re: /etc/crontab won't run my script

2009-04-24 Thread Ghirai
On Fri, 24 Apr 2009 11:39:21 -0400 Jerry McAllister jerr...@msu.edu wrote: On Fri, Apr 24, 2009 at 06:14:26PM +0300, Ghirai wrote: On Fri, 24 Apr 2009 18:08:13 +0300 Ghirai ghi...@ghirai.com wrote: Hi, I'm trying to get a python script to run from /etc/crontab, but it won't