Jump to content
bubbles

Problema Cron Jobs

Recommended Posts

Posted

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.

  • Active Members
Posted

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"

Posted

@MrGrj - merci.

Am sa incerc, insa prima oara le voi trimite un e-mail celor de la hosting, pentru ca cron jobul si fisierul executat se afla pe acelasi server/ip si nu prea are sens.

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