Cron Job - Permission denied

Status
Not open for further replies.

alec.t

New Member
Messages
10
Reaction score
0
Points
0
I was wondering if you could help me out? im new to cron jobs but after reading other posts, i thought my cron script would work... sadly it does'nt

i keep getting the error..
/bin/sh: /usr/bin/wget: Permission denied

for the following command
/usr/bin/wget -O - -q /home/myistop/public_html/advanced_dispatch.php
or
/usr/bin/wget -q /home/myistop/public_html/dispatch1.php

could you please advise me on how to get this problem fixed, thanks..
PS. A1 on server speed, love it ;):biggrin:
http://smartalec.x10hosting.com
thanks
alec.
:naughty:
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
You should specify the URL of the file to be executed. Don't use the absolute path. wget is a browser. Use the following command

Code:
/usr/bin/wget -O - -q http://smartalec.x10hosting.com/advanced_dispatch.php
 

alec.t

New Member
Messages
10
Reaction score
0
Points
0
did that once before.. but will restore it back to the http
still getting the permishion error tho
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Use "php-cron /home/user/path/to/cron.php"
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hello,

It seems your problem has been solved; if you have any more questions please feel free to open this.
 
Status
Not open for further replies.
Top