ID:               26884
 User updated by:  forlevibr at yahoo dot com dot br
 Reported By:      forlevibr at yahoo dot com dot br
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Slackware 9
 PHP Version:      4CVS-2004-01-12
 New Comment:

Hi
I am using crond version 2.3.3;

My crontab file have...

######start file#######

SHELL=/bin/bash
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/php/bin

47 * * * * /usr/bin/run-parts /etc/cron.hourly  1> /dev/null
40 4 * * * /usr/bin/run-parts /etc/cron.daily   1> /dev/null
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly  1> /dev/null
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null

## Two commands is working
0 0-23 * * * php /etc/cron/teste.sh  
#0 0-23 * * * run-parts /etc/cron

###########end file##############


My correct file teste.sh have

###########start file############
SHELL=/bin/bash
PATH=/usr/local/php/bin

php /etc/cron/teste.php
###########end file##############


Previous Comments:
------------------------------------------------------------------------

[2004-01-16 08:48:37] [EMAIL PROTECTED]

What crond version are you using?
And can you show the full crontab file?


------------------------------------------------------------------------

[2004-01-15 07:00:11] forlevibr at yahoo dot com dot br

Hi
I solved the problem, simply add the line below in the teste.sh
PATH=/usr/local/php/bin

I don't know if this is a bug, because now the file teste.sh have
commands:

PATH=/usr/local/php/bin
/usr/local/php/bin/php /etc/cron/teste.php

and before it has:

/usr/local/php/bin/php /etc/cron/teste.php

the shell PATH before and after

PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:
/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/kde/bin:
/usr/lib/qt-3.1.2/bin:/usr/share/texmf/bin:
/opt/sybase/bin:/usr/local/java/bin:
/usr/local/php/bin:/root/bin

Thank's

------------------------------------------------------------------------

[2004-01-15 01:13:26] [EMAIL PROTECTED]

# make clean && make


------------------------------------------------------------------------

[2004-01-14 11:52:21] forlevibr at yahoo dot com dot br

Hi
When run the make I get the Error below

...
gcc: sapi/cli/php_cli.o: No such file or directory
gcc: sapi/cli/getopt.o: No such file or directory
make: *** [sapi/cli/php] Error 1

What to do?

------------------------------------------------------------------------

[2004-01-14 10:38:21] [EMAIL PROTECTED]

First do this:

# rm config.cache && ./configure --prefix=/usr/local/php --disable-all
--disable-cgi --enable-debug && make && make install-cli

ie. compile a debug enabled PHP CLI binary without anything extra.
Also, change the teste.sh to run the php script like this:

/usr/local/php/bin/php -n /etc/cron/teste.php

(this will disable loading of any php.ini file)

Do you still get the crash?



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26884

-- 
Edit this bug report at http://bugs.php.net/?id=26884&edit=1

Reply via email to