0
votes
1answer
72 views

Why does my cron job sometimes fail on wget: unable to resolve host address [closed]

My cron job runinng properly .But sometimes it get fail with following error message" failed: No address associated with hostname. wget: unable to resolve host address "
0
votes
2answers
97 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
0
votes
1answer
78 views

Unable to get cron to append output from wget

I have a cronjob setup and running, but the logfile keeps getting overwritten every time it runs. I would like for the wget output to be appended each time the cron runs. Why is this and how do I fix ...
2
votes
3answers
989 views

Reboot if tomcat7 service is not responding

I am running a web app on a Tomcat server. There is a hard-to-detect problem within the server code that causes it to crash once or twice everyday. I will dig in to correct it when I have time. But ...
0
votes
3answers
333 views

cron job running repeatedly, why?

Why is this cron job executing repeatedly over time and what can I do to stop it? I have a cron job that is supposed to run at 4 each morning. It hits a php script that executes some daily data ...
0
votes
2answers
590 views

406 Not Acceptable error when runing wget

I have this command in crontab: wget --quiet --delete-after http://boms.ro/admincp/cron/s/9abf0f42c1e4f55fdb87d8237cdde And when I run it with the --debug argument I get the following response: ...
1
vote
2answers
894 views

Cron not running commands as root

I have a file called /scripts/checkInternet and it contains: #!/bin/bash WGET="/usr/bin/wget" rm /tmp/index.google $WGET -q --tries=10 --timeout=5 http://www.google.com -O ...
2
votes
1answer
222 views

Why does the time it takes to run this script differ so much between user and system and how I might correct the discrepancy?

My application sits behind a load balancer, and every once in a while I like to do a status check on each machine to get an idea of the time it takes to return an index.html document on each machine. ...
-1
votes
1answer
295 views

cpanel cron job not working

I have created a cron job in cpanel. The result is this: * * * * * /usr/local/bin/wget http://example.com/facturi-restante/cron The problem is that is not working. Can anyone give me a ...
7
votes
3answers
3k views

Why is only one wget command working in my crontab?

I wish to fetch content from a PHP script on my server two times a day, altering a query variable lang to set what language we want, and save this content in two language specific files. This is my ...
1
vote
1answer
1k views

Using lynx or wget in cron to call a php script?

I'm examining a particular setup, and they have their crontab as follows: 0 * * * * lynx http://www.example.com/cron/scriptA.php Of course, this relies on the 'security-by-obscurity' precept, ...
-1
votes
2answers
2k views

What does -q and -O mean?

What does -q and -O mean in the following cronjob? */30 * * * * /usr/bin/wget -q -O /dev/null http://example.com/moodle/admin/cron.php Thanks in advance.
1
vote
1answer
257 views

Hourly CRON task running more frequently than one hour

I have a cron task that calls a special PHP script via wget. Here is the crontab entry: 0 * * * * wget http://www.... It will work perfect for several days, running on the hour. However, after a few ...
0
votes
1answer
396 views

Does crontab file automatically bash a text file?

I have a crontab job setup. In the crontab file, I have a path to a text file. My text file has a wget command (which in turn, executes a PHP file). If the crontab file just has the path to the text ...
0
votes
3answers
761 views

Crontab repeats every 15 min

My cronjob is being repeated every 15 minutes and I don't have any idea why. Here is the crontab file with real commands replaced: # m h dom mon dow command # Comment 0 9 * * * command arg1 0 14 ...
0
votes
3answers
919 views

WGET Localhost 0 bytes

Hi I am trying to execute wget locally using cron, I have been told by my hosting that due to a local loopback that this won't work? I am attempting the following command: wget -q -O ...