I read in php manual that set_time_limit() affects in fact max_execution_time. You can see in my example code I wrote in my initial post that I set it to 100k secs. Php don't run in safe mode so it should go fine.
What I don't understand is why my php script dies while executing the shell script. Set_limit_time should make it wait. The build.sh script completes well. Tom Michael Virnstein wrote: > note: > i think the exec in your php waits for the shell to return, but before the > shell can answer, php terminates the script, because of the max_exection. > > Michael > > "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > check your max_execution_time settings in php.ini > > > > Michael > > > > "Tom Mikulecky" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Hello > > > > > > In one script I use exec() to execute a shell script which takes 2-3 > > > hours to run. I disabled user abort and set time limit to more than one > > > day. The shell script finishes well but no instruction after exec() is > > > run. The script finishes with no error nor warnings. > > > Some of you know hwat happens? > > > Thanx in advance. > > > > > > Tom > > > > > > Code snaps: > > > > > > > > > ignore_user_abort(1); > > > > > > set_time_limit(100000); > > > > > > (...) > > > > > > exec('/home/tom/build.sh >ouput 2>errlog'); //takes 3 hours to > > complete > > > > > > // *** Nothing from here gets executed, 'build.sh' script completed > with > > succes *** > > > > > > (...) > > > > > > I'm using php 4.0.4pl1(can't upgrade) with Apache 1.3.19 on Mandrake > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

