[PHP] cron problem
Hi all there is a bit of a problem with running cron scripts on our server and i would appreciate any help from the unix gurus. The story: I have created a script in the cron dir that runs a php file that sends auto emails. (The script is working fine when we run it through the command line, so it's working fine). The problem is that when the time comes and the cron should do its thing and run the script automatically, it doesn't. We have tried the cron.d dir and the cron.daily and nothing. The funny thing is that there are couple of scripts in there that run properly (I've been told anyways). So the question is: Is there some file somewhere that lists the names of the files that should run in the cron directory? If not, can someone tell me what the h*ll is going on? Thanks in advanced Mario - Marios Adamantopoulos Web Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cron problem
Hmm, this is a bit off topic, but... Mario wrote: [snip...] The story: I have created a script in the cron dir that runs a php file that sends auto emails. (The script is working fine when we run it through the command line, so it's working fine). The problem is that when the time comes and the cron should do its thing and run the script automatically, it doesn't. We have tried the cron.d dir and the cron.daily and nothing. The funny thing is that there are couple of scripts in there that run properly (I've been told anyways). So the question is: Is there some file somewhere that lists the names of the files that should run in the cron directory? If not, can someone tell me what the h*ll is going on? You can use the command 'crontab -l' to what tasks are listed there and the command 'crontab -e' to insert/delete the entries. Best Bao Thanks in advanced Mario - Marios Adamantopoulos Web Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cron problem
On 26-Jan-2004 Mario wrote: Hi all there is a bit of a problem with running cron scripts on our server and i would appreciate any help from the unix gurus. The story: I have created a script in the cron dir that runs a php file that sends auto emails. (The script is working fine when we run it through the command line, so it's working fine). The problem is that when the time comes and the cron should do its thing and run the script automatically, it doesn't. We have tried the cron.d dir and the cron.daily and nothing. The funny thing is that there are couple of scripts in there that run properly (I've been told anyways). So the question is: Is there some file somewhere that lists the names of the files that should run in the cron directory? If not, can someone tell me what the h*ll is going on? 1. Please don't hijack threads. 2. crontab -l will show what command will run and when 3. cron runs commands with a minimal evironment. You'll have to explicitly set the $PATH in the script. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php