Re: php w/CRON

From: Date: Wed, 23 Jan 2002 18:14:21 +0000
Subject: Re: php w/CRON
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81731@lists.php.net to get a copy of this message
I run php from cron but usually as part of a shell script. php may not be in the path. Try adding the full path to the php binary. Also, the error should be in your cron logs. Ken Gregg Enhanced Data Systems, Inc. http://www.rwre.com for the best in Southwest Oregon Real Estate Robert Abbate wrote: > Can someone please explain why when I run php from the command line like > this: > > [root@lion ]# php /home/mydirectory/myscript.php > > it will execute just fine, but if I place this within CRON, it will NOT > execute! > > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) > TERM=vt100 > */10 * * * * php /home/mydirectory/myscript.php > > How do you get this to work? I need to be able to run php scripts as ROOT, > and have them do ROOT functions (adding users, etc...) > > Robert

« previous php.general (#81731) next »