473,662 Members | 2,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1548
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
66813
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 are the other approaches. please advise. thanks!!
4
3039
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 choihead
4
7689
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 System account), th BL is called from the WS. So in my Business layer I've added code to start and close the form, but I get the error: "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode....
7
2937
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 being converted to black and white? In this way, users will always see a colorless web page when they access to the internet. Thank you, Chris
6
2086
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 code. System.Diagnostics.Process.Start(filename) ‘filename’ is the full path of the file (like ‘C:\Folder\file.pdf’)
14
2074
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 long call is processing, I can not make any more requests to the server from the same session. I found this because if I have two completely separate instances of IE, they will not block each other, but if I do a File/New to spawn a separate...
2
1788
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 informations about the scan stats during the nmap execution. More at: http://www.insecure.org/nmap/man/man-runtime-interaction.html If someone want to try, just run nmap and try to type some keys to see what happens. This only works with nmap 4.00...
0
988
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 require the user interaction. it simply for me to use AxControl to manipulate visio diagrams. Since this requires me to interact with desktop i have to run the service as local system and enable the 'allow interact with desktop' checkbox....
1
2362
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 fine and all seemed well) but when we moved it to site we forgot to change the publisher's alias's IP address from 192.168.x.y to its real-world IP. Our fault entirely. When we corrected the IP it tried to go through but gave the error: The...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.