How to use wget command in cron job?

Asked by:
Istvan / 5 Points
Time:
2011-09-19 8:17 am EST
Category:
How To
Hits:
8,969
The current cron request:
wget -O - -q -t 1 http://mydomain/index.php?parameter
Answer from cron job:
/bin/sh: /usr/bin/wget: Permission denied

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by Web Hosting Hub staff

0

Timothy S.
Staff
741 Points
2011-09-20 7:12 pm EST
Hi Istvan,

I just wanted to some additional notes to my last response. Most scripts that are run via wget can be used with the lynx or curl command like so:

lynx -dump http://domain.com/folder/script.php?dl=file

curl http://domain.com/folder/script.php?dl=file

If you need further assistance, please feel free to contact us.

Thank you!

Tim S.

To submit a comment on this answer, please first login.

ANSWERS

0

Timothy S.
Staff
741 Points
2011-09-19 2:37 pm EST
Hello Istvan,

Thanks for posting your question. I'm sorry for your troubles with your cron job. I'm more than happy to assist you.

In a shared environment, you security purposes, we have disabled wget from being able to be ran in a cron job.

You will not be able to use wget. If you have any further questions please feel free to contact us.

Thank you!

Tim S.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}