Date: Fri, 24 Apr 2009 18:14:26 +0300 From: Ghirai <ghirai@ghirai.com> To: freebsd-questions@freebsd.org Subject: Re: /etc/crontab won't run my script Message-ID: <20090424181426.fe1706a3.ghirai@ghirai.com> In-Reply-To: <20090424180813.7e74cafb.ghirai@ghirai.com> References: <20090424180813.7e74cafb.ghirai@ghirai.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Apr 2009 18:08:13 +0300 Ghirai <ghirai@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 * * * * > munin /usr/local/bin/python /root/myscript.py > >> /var/log/myscript.log > > I used munin user because i already have it (can i run it under > 'nobody'?). > > This is what /var/log/cron says: > > Apr 24 18:00:01 triton /usr/sbin/cron[4361]: (munin) CMD > (/usr/local/bin/python /root/myscript.py > >> /var/log/myscript.log) > > > However the script doesn't seem to run at all. > > Obviously it works if i run it stand-alone, as any user. > I'm running 7.1-RELEASE-p4, i386. > > What am i doing wrong? > > Thanks. > 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. -- Regards, Ghirai.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090424181426.fe1706a3.ghirai>