RE: [PHP-GENERAL] Exec() trouble

From: Date: Mon, 15 May 2000 19:31:58 +0000
Subject: RE: [PHP-GENERAL] Exec() trouble
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72@lists.php.net to get a copy of this message
yes, but when you telnet in you are in a shell (probably bash) php doesnt run the shell so will need to know if you have nohup program where it is.. some shells have nohup built in. shells also have a path variable, which can be set/extended when you login, PHP is no doubt not doing this. Try finding the nohup binary! > -----Original Message----- > From: Rafael Ernesto Bastidas L. [mailto:reb@wd3.com] > Sent: 16 May 2000 08:31 > To: Php-Dev > Subject: RE: [PHP-GENERAL] Exec() trouble > > > ok.. linuxq3ded is a binary. The things is that is a server that I want to > run on-demand. I usually use nohup with it so I can close my > telnet session > without closing it first. > > Now I'm trying to run the same command form PHP and I can't.. > > I need to end the command line with an &. If I put it... the > return value of > exec is 0. if I omit the & at the end of the command line, the > return value > is 127 > > What does this numbers means? > > Rafael > > -----Original Message----- > From: Liz Kimber [mailto:liz@xcalibur.co.uk] > Sent: Monday, May 15, 2000 3:16 PM > To: Rafael Ernesto Bastidas L. > Subject: RE: [PHP-GENERAL] Exec() trouble > > > On unix a program which is a compiled thing is called a binary, > check if you > have one and put the path in your command you had.. as I think > thats why it > wouldnt be running > > > -----Original Message----- > > From: Rafael Ernesto Bastidas L. [mailto:reb@wd3.com] > > Sent: 16 May 2000 07:22 > > To: Liz Kimber > > Subject: RE: [PHP-GENERAL] Exec() trouble > > > > > > Any suggestion? Hwt kind of binary should i use? > > > > Rafael > > > > -----Original Message----- > > From: Liz Kimber [mailto:liz@xcalibur.demon.co.uk] > > Sent: Monday, May 15, 2000 1:56 PM > > To: Rafael Ernesto Bastidas L.; Php-Dev > > Subject: RE: [PHP-GENERAL] Exec() trouble > > > > > > I'd suggest then that nohup isnt part of the shell its using... > > > > Check to see if your system has a binary to do the same. > > > > > -----Original Message----- > > > From: Rafael Ernesto Bastidas L. [mailto:reb@wd3.com] > > > Sent: Tuesday, May 16, 2000 06:33 > > > To: Php-Dev > > > Subject: [PHP-GENERAL] Exec() trouble > > > > > > > > > Ok.. I want to run the following command line from a PHP3 web page: > > > > > > nohup /usr/local/games/q3a/linuxq3ded +set dedicated = 0 +exec > > > serveralone.cfg& > > > > > > As you can see, the path is /usr/local/games/q3a/ and the > > command line is > > > > > > linuxq3ded +set dedicated = 0 +exec serveralone.cfg' > > > > > > but the program doesn't run, I type ps -A in telnet window and > > linuxq3ded > > > doesnt appear. It does appear when I run the same command in > the telnet > > > session. > > > > > > What am I doing wrong? The program has chmod 777 > > > > > > Please help > > > > > > Rafael > > > > > > > > > -- > > > 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 > > > > > > > -- > > 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 > > > > > > > > -- > 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 (#72) next »