I have a command I start with open "| command".
I am finished with it before all output is generated.
If I close it before all output is generated I get (after the command
is finished):
child process exited abnormally
I could solve this with:
read $fp
if {[catch {close $fp} closeError]} {
puts stderr "Could not close speedtest (${closeError})"
}
But that only works with a program that does finish.
(And could be resource unfriendly.)
What is the correct way to close a program started with:
open "| command"
--
Cecil Westerhof
Senior Software Engineer
LinkedIn:
http://www.linkedin.com/in/cecilwesterhof
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)