Date: Fri, 11 May 2007 14:41:25 -0500 From: "James Anderson" <baka.rob@gmail.com> To: "Halid Faith" <maslak@ihlas.net.tr> Cc: freebsd-questions@freebsd.org Subject: Re: Why crontab is not able to run some commands ? Message-ID: <ff4d9d1d0705111241p46888b52y940d755611482278@mail.gmail.com> In-Reply-To: <002001c793fd$a789bfa0$dc96eed5@ihlasnetym> References: <002001c793fd$a789bfa0$dc96eed5@ihlasnetym>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/11/07, Halid Faith <maslak@ihlas.net.tr> wrote: > > I have a script. As I am a root user, I can run it without a problem. I > added that script to crontab in order to run as automatic. > I entered in /etc/crontab and put down as below; > */20 * * * * root /etc/scriptfile > > Despite root user, the crontab could not run above file. But I can run the > same script in command line interface. Which command are you using to run the script on the command line? Are you just typing out /etc/scriptfile into the shell prompt, or are you running "sh /etc/scriptfile" or running it via some other interpreter? > I am sure tha the crontab daemon is running. Also I can see the crontab try > to run that script in /var/log/cron. > /usr/sbin/cron[98727]: (root) CMD (/etc/scriptfile) Which indication do you have that cron ISN'T running the script? > When I am a different user, I couldn't run the script and I got "access > denied" > What is the problem ? Which file permission does /etc/scriptfile have? (ls -l /etc/scriptfile) Maybe the other user doesn't have read and/or execute permission? Sincerely, -Parker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ff4d9d1d0705111241p46888b52y940d755611482278>