Page 1 of 1

How to specify shell with php's shell_exec()

Posted: Thu Sep 05, 2013 12:31 am
by Ankush
Hello all
I am developing a web based application which needs to execute system commands from web instead from shell.
I am using shell_exec() method to do it. It does all the the task for me, but problem is that shell_exec() method starts every new command in new shell and causing a huge problem to me. Using shell_exec() method i started a process but now how will i be able to stop that. I hope i am clear to you with my problem . Kindly help me, Thank you!

Re: How to specify shell with php's shell_exec()

Posted: Thu Sep 05, 2013 7:23 am
by Ankush
Is there any one who can help?? or this is a passive forum???? I can't see any body active here or helping me

Re: How to specify shell with php's shell_exec()

Posted: Thu Sep 05, 2013 11:43 am
by Christopher
You could use the proc_* functions (http://www.php.net/manual/en/book.exec.php) or use the PCTL extension (http://php.net/manual/en/book.pcntl.php).