OS Win2000 Tcl/tk 8.4.3
How do I find out if a process which is running in the background which was launched by: exec $process &
has finished so I can display a "process finished " dialogue?
Thanks in advance
Mark
Jicote,
Thanks for your suggestion but I cannot get it to work for me. I have a test console application which prints something, waitts for a carrage return then prints something else. Sure it waits for the input but nothing happens when I input anything in the text widget, or am I missing...
OS win98
Hi, i've got an console application launcher (below) which redirects the dos box output into a text window, this is fine if no input is required from the user but how do I get keyboard input into the application if it requires it?
TIA
Mark
TCL code follows:
# console show
button...
Win98 tcl 8.3.4
I have a script which will launch a console exe file and capture the output into a text widget using the procedures below. This is fine if the application needs no input from the user via keyboard, but how do i get the application to wait for input if required, and get it? I do...
Ken
Thanks very much, yes it was output buffering which was causing the problems. Adding fflush(stdout) after each printf in the original C source sorted it out.
The original was not a true dos executable but a win32 console application.Is there anyway of turning stdout buffering off ? for...
Thanks for the suggestion but until the dosexecutable finishes it hangs then spits all the output in 1 go, what i want is it to spit each line that the dosexecutable writes out as it happens.
It does have the advantage of not having to write an intermediate file though.
Any further suggestions...
OS win98
I want to capture the output to a DOS box as it happens.
I launch the app using exec and can redirect the output to a file ( exec app.exe > out.txt & ) once this file is written & closed I can open it and display the contents, but how can I just capture a line at a time from the DOS box...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.