Date: Wed, 01 Mar 2006 12:16:05 -0500 From: Frank Laszlo <laszlof@vonostingroup.com> To: Halid Faith <maslak@ihlas.net.tr> Cc: freebsd-questions@freebsd.org Subject: Re: I could not run this script in /etc/crontab Message-ID: <4405D6D5.8010402@vonostingroup.com> In-Reply-To: <0a3801c63d08$64a00840$dc96eed5@ihlasnetym> References: <009701c63ca3$c982b4c0$dc96eed5@ihlasnetym> <6.0.0.22.2.20060228143017.02654958@mail.computinginnovations.com> <0a3801c63d08$64a00840$dc96eed5@ihlasnetym>
next in thread | previous in thread | raw e-mail | index | archive | help
Halid Faith wrote: > My pathname is correct. I already checked it. > Also I can run manually while I am a root user. > I dont think you fully understand. Be sure to use FULL pathnames in programs within the script you are trying to run. when you run the script within an interactive shell, the PATH is not the same as if it were ran via cron. Hope this helps. -Frank > ----- Original Message ----- > From: "Derek Ragona" <derek@computinginnovations.com> > To: "Halid Faith" <maslak@ihlas.net.tr>; <freebsd-questions@freebsd.org> > Sent: Tuesday, February 28, 2006 10:31 PM > Subject: Re: I could not run this script in /etc/crontab > > > >> Check your script for and use full pathnames for commands, cron doesn't >> guarantee you will have a path or any environment variables you don't set >> in your script. >> >> -Derek >> >> >> At 02:15 PM 2/28/2006, Halid Faith wrote: >> >>> Hello >>> >>> I have a script. >>> I can run it without a problem as root manually. >>> But I have a problem >>> I could not run this script in /etc/crontab as below; >>> >>> */1 * * * * root /root/thescript >>> >>> What should I do ? >>> >>> >>> >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> > "freebsd-questions-unsubscribe@freebsd.org" > >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> > "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4405D6D5.8010402>
