Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My work's server is Ubuntu.

I have the following cron set. */30 * * * * /usr/bin/wget

I know that Cron.php is working.

I get the following email.

--2010-06-28 07:40:01-- Resolving Connecting to||:80... failed: Connection timed out. Retrying.

--2010-06-28 07:43:11-- (try: 2) Connecting to||:80... failed: Connection timed out. Retrying. ... ...

--2010-06-28 08:42:17-- (try:20) - Hide quoted text - Connecting to||:80... failed: Connection timed out. Giving up.

But I don't get email anymore.

Q1. It is telling that failed and giving up. How can I fix it?

Q2. Why it is not sending email notice any more?

Thanks in advance.

share|improve this question
Try at least to ping from your server. It will give you an hint about if you can reach or not the host. – Weboide Jun 28 '10 at 21:22
You might want to change your title. Cron is working. The job failed. – d-_-b Jun 30 '10 at 0:47
up vote 0 down vote accepted

Remove the last slash on /usr/bin/wget/. The binary is /usr/bin/wget. Also make sure that wget works. Currently it looks like your web server won't serve the file.

share|improve this answer
/wget/ was my typo. It is /wget on my crontab -l. When I visit on a browser, it gives back the result. So it is working. – shin Jun 28 '10 at 8:46
Call wget in a shell on the server which will run the cron job and see if it's working. – joschi Jun 28 '10 at 8:48
It outputs, Resolving ... 81.167. bla bla Connecting to|81.167. bla bla... Connection timed out. And then it is repeating again. If I visit it on a browser, it shows the result. What am I doing wrong? – shin Jun 28 '10 at 8:58
Are you behind a proxy? And if so, do you have $http_proxy set? Also, are you trying to browse to the website from the box you're running wget on, or from a different box? – Cian Jun 28 '10 at 9:09
I can't tell you what to set your http proxy to if you don't know whether or not you have one. Either way, the problem is probably a firewall in the way either with different rules for your desktop, or that only allows connections to your http proxy. – Cian Jun 28 '10 at 9:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.