linux - crontab with php started, but sometimes it doesnt end -


i run cron job runs commandline php script call web service , insert data db 7hrs daily. weird thing never ended.

i checked , had ensure if exception caught, should still continue end of script. if there's error in script, run.html should show me error.

my crontab running bash script runs below every 7 hrs

php run.php >> "run.html" 

the situation sometimes, run.html doesnt has written . 0 bytes.

when running, has pid tied process. after 7hrs when nothing written in run.html, checking process again (using command ps -eo pid,lstart,etime,cmd | grep php ), realise process gone.

i not time timeout issue there no error shown on php_errors.log , , i've set in script

 ini_set ("memory_limit",0);

what other causes be?

depending on hosting webserver, it's entirely possible admin either rebooting server or straightforwardly killing long running process. (perhaps he's mistaking zombie?)

i've done lot of work on sites hosted on shared servers, , problems along these lines occur rather frequently, in experience. it's sort of pain, too, given problem non-technical, , can move different host.

so might want that. send hosting provider email , see if can shed light on situation you.

good luck.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -