Date: Fri, 11 May 2007 14:34:28 -0500 From: Paul Schmehl <pauls@utdallas.edu> To: freebsd-questions@freebsd.org Subject: Re: Why crontab is not able to run some commands ? Message-ID: <7B18DD5BC0866A3F9B9EC7A3@utd59514.utdallas.edu> In-Reply-To: <002001c793fd$a789bfa0$dc96eed5@ihlasnetym> References: <002001c793fd$a789bfa0$dc96eed5@ihlasnetym>
next in thread | previous in thread | raw e-mail | index | archive | help
--==========E3B68BCA49281FA2BEE6========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Friday, May 11, 2007 21:53:24 +0300 Halid Faith <maslak@ihlas.net.tr>=20 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 > Try running this from the commandline: root /etc/scriptfile Bet it doesn't work. :-) Then try running this in your cron job: /bin/sh /etc/scriptfile Bet it does work. :-) --=20 Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========E3B68BCA49281FA2BEE6==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B18DD5BC0866A3F9B9EC7A3>