From owner-freebsd-questions@FreeBSD.ORG Wed Mar 1 17:16:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A69B16A420 for ; Wed, 1 Mar 2006 17:16:11 +0000 (GMT) (envelope-from laszlof@vonostingroup.com) Received: from ritamari.vonostingroup.com (ritamari.vonostingroup.com [216.144.193.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD97C43D46 for ; Wed, 1 Mar 2006 17:16:10 +0000 (GMT) (envelope-from laszlof@vonostingroup.com) Received: from adsl-68-72-248-38.dsl.sfldmi.ameritech.net ([68.72.248.38] helo=[192.168.1.33]) by ritamari.vonostingroup.com with esmtpa (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FEUvn-000DWt-UB; Wed, 01 Mar 2006 12:16:08 -0500 Message-ID: <4405D6D5.8010402@vonostingroup.com> Date: Wed, 01 Mar 2006 12:16:05 -0500 From: Frank Laszlo User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Halid Faith References: <009701c63ca3$c982b4c0$dc96eed5@ihlasnetym> <6.0.0.22.2.20060228143017.02654958@mail.computinginnovations.com> <0a3801c63d08$64a00840$dc96eed5@ihlasnetym> In-Reply-To: <0a3801c63d08$64a00840$dc96eed5@ihlasnetym> X-Enigmail-Version: 0.93.2.0 OpenPGP: url=http://www.franksworld.org/~laszlof/keys/0x0B3FCA4B.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ritamari.vonostingroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - vonostingroup.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org Subject: Re: I could not run this script in /etc/crontab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 17:16:11 -0000 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" > To: "Halid Faith" ; > 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" >