PDA

View Full Version : cron troubles



jonn
04-04-2009, 06:54 PM
for life of me i just cant get the cron to run.
it did work on plesk with flying colors, & the php file works by just using the url in the browser.

how do I do it on DA. makes no sense it should work.


GET "http://www.xxxxxxxxxxxxx.com.au/index.php?hp=1&m=cron&s=123abc456def"

then it said via email:
Could not open input file: GET

I just tryed this way:
/usr/local/bin/php -q -f /home/userA/domains/xxxxxxxxxxxxx.com.au/index.php?hp=1&m=cron&s=123abc456def
then it said via email:
Could not open input file: /home/userA/domains/xxxxxxxxxxxxx.com.au/index.php?hp=1

Im confused..

redesb
04-04-2009, 07:30 PM
What I do is:

lynx -dump http://www.example.com/path/script.php > /dev/null 2>&1 or

lynx -dump -auth=username:password http://www.example.com/path/script.php > /dev/null 2>&1 when user/pass is required. Before include that check you have the 'lynx' package installed.

Hope this help,
Ramon

Dravu
04-04-2009, 07:42 PM
Here's an example of what I have:

/usr/local/bin/php /home/example/domains/example.com/public_html/script.php >/dev/null 2>&1Make sure you are using the correct path to the file

jonn
04-04-2009, 07:53 PM
lynx dont work....
/bin/sh: lynx: command not found

jonn
04-04-2009, 07:55 PM
thanks but all three didnt work.

I just cant understand why:
GET "http://www.xxxxxxxxxxxxx.com.au/index.php?hp=1&m=cron&s=123abc456def"
will not work.

jonn
04-04-2009, 08:31 PM
****, GET isnt even in the /usr/bin so I should be using wget.

so my url in cron now reads:

wget "http://www.xxxxxxxxxxxxx.com.au/index.php?hp=1&m=cron&s=123abc456def"

resolved. YEAH........WOOHOO


:)

floyd
04-05-2009, 05:30 AM
lynx dont work....
/bin/sh: lynx: command not found

If you are on a RedHat based system:

yum install lynx


GET isnt even in the /usr/bin

If you are on a RedHat based system:

yum install perl-libwww-perl