Page 1 of 1

SCRIPT_FILENAME variable

Posted: Thu Oct 19, 2006 12:06 pm
by modom46
I have setup 20 different crons like this into one file called db1.sh:
/usr/bin/mysqldump --lock-tables -u -p store > /var/www/vhosts/domain.com/httpdocs/admin/backups/store2.sql

The db1.sh file is in /root/cronjobs/db1.sh

When I run the cronjob script only it works just fine and puts the file in the correct place.

When I run the db1.sh file with the cron in it I get this:
[root@godslove cronjobs]# ./db1.sh
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9

No input file specified.
However the database listings in this file run correctly and save to the correct place.

I understand I should set the SCRIPT_FILENAME variable.

Could someone please tell me how to do this?
php 4.3.9

Thank you!