473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Show a process interaction on a PHP site

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
1 1534
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
4
by: choihead | last post by:
Hi All, How can i excuete a bat file by c#? I used System.Diagnostics.Process.Start("../stage.bat"); but it cannot find the file, is this the correct method to call the bat file? thx...
4
by: anders | last post by:
I have a 'solution' with a Webservice, Business layer and a data layer. In the Business layer I've added a form that need to be started on the server(this site has full rights, runs with Local...
7
by: JCL | last post by:
I have a winform and on this winform, I have a WebBrowser control. Users can browse the web through this form. Is there a way that I can make web pages show up as grey scale pages, with the color...
6
by: Cosmin Spirescu | last post by:
Hi, It should be something very simple, but I do not know what I do wrong. I display some PDF filenames form a folder into a gridview and when the user clicks on the name, it execute this...
14
by: Harry Keck | last post by:
I have client side code that uses xmlhttp to make an asyncronous call to the server. This call really churns the server and can take a couple of minutes to finish. I have found that while this...
2
by: py.adriano | last post by:
Hi folks, I'm trying to use the nmap runtime interaction feature while using it with the subprocess module. For those not familiar with nmap, the runtime interaction feature allow users to get...
0
by: sigsik | last post by:
Hi, I'd like to run an executable process without the need to be logged on to the computer. that is why i want to run it as a window service. The executable opens a form (ui) that does not...
1
by: Jim | last post by:
We've got a problem with a 2005 publisher to a 2005 subscriber. We had a merge subscription that got four months out of date. It was fine when the two machines were back-to-back (snapshot applied...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.