Jump to content
bubbles

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... 86.106.30.77
Connecting to lotostats.ro|86.106.30.77|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

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:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"

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.

Guest
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...