I have a php script that queries some Oracle DB and outputs a single
line of plain text with <brat the end for each query. This is
Apache2, php4.4.8 and Oracle Instant Client 10.1.0.5 all on CentOS 4.4
32bit. Php does run as an Apache SO.
It works perfectly if I just hit the page in a web-browser (output to
browser).
It works *perfectly* from the command line (dumps the text to the file
per the redirect)
/usr/bin/php /var/www/html/dashboard/dash1.php /var/www/html/
dashboard/dash.inc
When run as cron, it updates the timestamp of the target file, but
does not write the text, nor any error.
05,15,25,35,45, 55 * * * * /usr/bin/php -q /var/www/html/dashboard/
dash1.php /var/www/html/dashboard/dash.inc
There is nothing in php error log, syslog or any other location I can
find. The entry in cron log suggests that it works perfectly. It does
not email any errors to me.
I'm very puzzled.... anyone have any idea for trouble shooting ????
philc
(this is not hosted, I control/operate the linux server)
line of plain text with <brat the end for each query. This is
Apache2, php4.4.8 and Oracle Instant Client 10.1.0.5 all on CentOS 4.4
32bit. Php does run as an Apache SO.
It works perfectly if I just hit the page in a web-browser (output to
browser).
It works *perfectly* from the command line (dumps the text to the file
per the redirect)
/usr/bin/php /var/www/html/dashboard/dash1.php /var/www/html/
dashboard/dash.inc
When run as cron, it updates the timestamp of the target file, but
does not write the text, nor any error.
05,15,25,35,45, 55 * * * * /usr/bin/php -q /var/www/html/dashboard/
dash1.php /var/www/html/dashboard/dash.inc
There is nothing in php error log, syslog or any other location I can
find. The entry in cron log suggests that it works perfectly. It does
not email any errors to me.
I'm very puzzled.... anyone have any idea for trouble shooting ????
philc
(this is not hosted, I control/operate the linux server)
Comment