hello,
i am having problems using cron jobs
from a linux server
my requirement is to execure a php file which is in ther server
i used with the syntaxes
/dev/usr/bin/php/www.xxxxx.com/sendmail2.php
and not working please correct me
Help is required ..
thanks
help in cron jobs
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: help in cron jobs
You have to make the script executableand put at the top. Test it by running in the shell, it should execute.
Code: Select all
$ chmod +x /dev/usr/bin/php/www.xxxxx.com/sendmail2.phpCode: Select all
#!/usr/bin/env phpCode: Select all
$ /dev/usr/bin/php/www.xxxxx.com/sendmail2.php