cron troubles

jonn

Verified User
Joined
Mar 29, 2009
Messages
107
Location
Queensland, Australia.
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.

Code:
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..
 
Last edited:
What I do is:
Code:
lynx -dump http://www.example.com/path/script.php > /dev/null 2>&1
or
Code:
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
 
Here's an example of what I have:
Code:
/usr/local/bin/php /home/example/domains/example.com/public_html/script.php >/dev/null 2>&1
Make sure you are using the correct path to the file
 
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.
 
Last edited:
****, GET isnt even in the /usr/bin so I should be using wget.

so my url in cron now reads:
Code:
wget "http://www.xxxxxxxxxxxxx.com.au/index.php?hp=1&m=cron&s=123abc456def"

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


:)
 
jonn said:
lynx dont work....
/bin/sh: lynx: command not found

If you are on a RedHat based system:
Code:
yum install lynx

jonn said:
GET isnt even in the /usr/bin

If you are on a RedHat based system:
Code:
yum install perl-libwww-perl
 
Back
Top