The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What am I doing wrong in PHP Cron Script?
Anyone know why when I try to call:
40 3 * * * root /usr/local/bin/php /home/forums/public_html/vb/delold.php the cron script emails me an error of: Date: Fri, 4 Feb 2005 03:40:00 -0600 From: Cron Daemon <root@localhost.localdomain> To: root@localhost.localdomain Subject: Cron <root@swish> /usr/local/bin/php /home/forums/public_html/vb/delold.php Warning: main(./global.php): failed to open stream: No such file or directory in /home/forums/public_html/vb/delold.php on line 3 Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/forums/public_html/vb/delold.php on line 3 I think my problem is not having the cron setup correctly.. This is a dedicated server in which I run myself with no other websites, so I have full root access.. Any suggestions? |
#2
|
||||
|
||||
just use the direct relative path from the cron folder
../../delold.php |
#3
|
|||
|
|||
Thanks trafix,
however, that did not work, I still receive the same message. The PHP file requires global.php, and global.php requires ./admin/functions.php I believe that is where my problem is stemming from. if I run it from anywhere other than crontab, it works fine, but as soon as I edit it to run in crontab, I receive that error message. I'm wondering if I need to create a cron.sh command and make it change directory into my fourms path? |
#4
|
||||
|
||||
yep ok i have also found that the cron folder lacks some function.
I have had to do some cron jobs like this .... 1) the cron script only has code to PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|