Re: Browser hangs with exec, HELP!!!!!

From: Date: Sun, 12 Nov 2000 02:17:58 +0000
Subject: Re: Browser hangs with exec, HELP!!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24828@lists.php.net to get a copy of this message
Juan, The exec command waits for whatever you are executing to stop before it continues down the page. You probably want to avoid using a script which calls itself if you can. SL. ----- Original Message ----- From: "Juan Claudio Santana Saldaña" <claudio@santana.net> To: <php-general@lists.php.net> Sent: Saturday, November 11, 2000 12:02 PM Subject: [PHP] Browser hangs with exec, HELP!!!!! > Hello guys, > > I hope you can help me with this one. I have this small php script > where I make this call: > > exec( EscapeShellCmd( "/home/dbuser/myprocess.sh & > > /home/dbuser/logfile.log 2>&1" ) ); > > the script is something like this: > > #!/bin/bash > > killall myprocessa > killall myprocessb > > /home/dbuser/restartoldprocesses.sh & > exit 0 > > The script executes with no problems but the browser hangs and never > returns!!! then I go the the shell and run ps -ax and get this: > > <some_processid> ? Z 0:00 [myprocess.sh <defunct>] > > I'm running php 4.02 with apache 1.3.14 with gp, mysql, psql, ttf, jpeg > and gif supports. I've read every single line of the php manual pages > about executing shell processes and it doesn't make any sense what is > happening to my script. Please HELP!!!!! HELP!!!!! HELP!!!!! > > > Claudio Santana. > > ---------------------------------------------------------------------------- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#24828) next »