3

How Do I Simulate a Shell Terminal via PHP?

view full story
linux-howto

http://www.unix.com – ----------- Summary ----------- I need a command/set of commands that can help me simulate a shell terminal via a PHP web page using commandline functions. How can I combine the power of nohup and a while loop to: start the shell, execute commands and print output (and errors i.e. 2>&1) to screen (STDOUT), send the shell to background when PHP disconnects to wait for another more commands from the user, and killing the process after the exit command is issued or a certain period, say 5 mins has elapsed with no response? Is there an easier or better way (SSH being out of the questi (HowTos)