Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Show a process interaction on a PHP site
- Helder Lima
April 1, 2005, 2:54 pm
rate this thread
I've 2 questions that are linked:
#1: I'm doing a site to manage a lot of unix scripts, a now how to
call each script and how to pass their arguments, but most of this
scripts are interactive, i.e., they ask for more information to the
If I'm not wrong, wen we call a external program from a site with php
(or any other language), we only get the site control after the
process is finished. So, if it is correct, how can I put the script's
runtime output (the script's askings) on my site an after send again
to the script to let him finish his process?
#2: This is like the first, but instead of the script ask something,
it only send the information for the display (if it is running on a
xTerm for exemple) and that information has a refresh rate. How can I
show that information on my site with all the refreshes?
Re: Show a process interaction on a PHP site
It covers most of your questions.
Also, if you're interested in how scripts can call other programs at a
slightly lower level, you might want to look up forks (see: fork(2),