Jump to content

Problema Cron Jobs

Recommended Posts

Am urmatoarea comanda pentru cron job :

/usr/bin/wget http://lotostats.ro/fisier/fisier.php

care ruleaza din ora in ora, insa uneori nu se executa si primesc pe mail urmatoarele rapoarte :

--2015-06-16 14:07:01--  http://lotostats.ro/fisier/fisier.php
Resolving lotostats.ro...
Connecting to lotostats.ro||:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.

Care poate fi problema ?

Tin sa mentiones ca site-ul este functional in momentul in care se executa cron job-ul.

Link to comment
Share on other sites

  • Active Members

E posibil sa iti baneze ip-ul din cauza requesturilor numeroase.

Daca spui ca uneori merge alteori nu, cred ca asta e problema.

Incearca si alte solutii:

curl -i http://lotostats.ro/fisier/fisier.php | less

Mai poti incerca sa adaugi si un user-agent:

wget "http://lotostats.ro/fisier/fisier.php" --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...