Cron suddenly calls a script every 15 minutes

Vincent

On a Debian server, I have a crontab entry that should call a script every day at 04:21 AM.

That's what it did, until today .. but now the script is called every 15 minutes without any reason !

I have not changed the crontab in months !

Here's the crontab line :

21 4 * * * /usr/bin/wget -O /dev/null http://www.domain.tld/tasks/hebdomadaire.php &> /dev/null

And here's the Apache log ( cat access.log | grep "hebdomadaire" ) :

SERVER_IP - - [28/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [29/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [30/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:04:21:01 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:04:36:02 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:04:51:04 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:06:07 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:21:11 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:36:16 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:05:51:22 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:06:30 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:21:38 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:36:47 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:06:51:57 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"
SERVER_IP - - [31/Mar/2016:07:07:07 +0000] "GET /tasks/hebdomadaire.php HTTP/1.1" 200 454 "-" "Wget/1.13.4 (linux-gnu)"

How can that be?

Vincent

The default behaviour of wget (documented in the manual) is to restart after a default timeout of 900s (aka 15 min).

Adding --timeout=0 solves the problem here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Run Cron Job Every 15 Minutes in specific time and every day

Configure cron job that is executing every 15 minutes on Hangfire

Problem with cron job which has to run every 15 minutes but not at 15,30,45

Coldfusion 10 scheduled task cron time for every 15 minutes but only on Tuesdays

Run Cron Every 15 minutes between 7am to 7 pm

Run Cron every 2 minutes in 30 minutes?

systemd timer every 15 minutes

Cron several script every 5 minutes with 10 second between each script

Mode set to have the script make calls only every 2 minutes inside the every 1 minute trigger. (Google App Script)

Job exporting tables to file every 15 minutes and calling PHP script once done

Receiving Time Based (Every 15 minutes) Summary of failures for Google Apps Script:

Spring cron expression for every after 30 minutes

Cron syntax for every 30 minutes | gitlab

Refresh Azure Redis Cache every 15 minutes

MySQL Group Epoch Timestamp by Every 15 Minutes

Spring execute method every 15 minutes

Sending a message on discord every 15 minutes

Crontab execute every 15 minutes for two days

how to count a "batch" every 15 minutes

UILocalNotification every working day / 15 minutes

How to use pandas ffill every 15 minutes

Countdown Timer every 15-Minutes in the hour

Cron job every 5 minutes before 30 minutes

Cron running job every 15 seconds

Running a method every 15 minutes, every day, between certain times

PHP to run jquery script every 'x' minutes

Python - Pause entire script every 10 minutes

how to run a script in every 10 minutes

Run script on Windows every n minutes