By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

Show a process interaction on a PHP site

P: n/a
Hi.
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
user.
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?

Any idea?

Tks.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Read this:

http://uk.php.net/popen

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),
wait(2) ).

Cheers
--Colin Horne

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.