How to use wget command in cron job?

Asked by:
Istvan
Time:
2011-09-19 5:17 am
Category:
How To
Hits:
4,682
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

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by Web Hosting Hub staff

0

Timothy S.
2011-09-20 4:12 pm
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.

You must login before you can post a comment about this answer.

OTHER ANSWERS

0

Timothy S.
2011-09-19 11:37 am
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.

You must login before you can post a comment about this answer.

Like this Question?

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Internal Server Error
  2. Add a note field to order page in Prestashop 1.5
  3. how to make new website with single account.

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
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.