[PHP] Re: Program execution stops at exec()

2002-05-24 Thread Michael Virnstein
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 li

[PHP] Re: Program execution stops at exec()

2002-05-24 Thread Michael Virnstein
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_executio

[PHP] Re: Program execution stops at exec()

2002-05-27 Thread Tom Mikulecky
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.

Re: [PHP] Re: Program execution stops at exec()

2002-05-24 Thread Analysis & Solutions
On Fri, May 24, 2002 at 06:30:50PM +0200, Michael Virnstein wrote: > 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. http://www.php.net/manual/en/function.set-time-limit.php "... Any time spen

Re: [PHP] Re: Program execution stops at exec()

2002-05-24 Thread Michael Virnstein
Must have overwritten this, but very good to know that. Thanx. Michael "Analysis & Solutions" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Fri, May 24, 2002 at 06:30:50PM +0200, Michael Virnstein wrote: > > > i think the exec in your php waits for

RE: [PHP] Re: Program execution stops at exec()

2002-05-27 Thread David Freeman
> 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. Not the exact solution here but perhaps a work-around. How dynamic is the data you're generating with your shell script? Perhap

Re: [PHP] Re: Program execution stops at exec()

2002-05-27 Thread Tom Mikulecky
David Freeman wrote: > > 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. > > Not the exact solution here but perhaps a work-around. How dynamic is > the data you're generating w