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 <Cecil@decebal.nl> writes:
What is the correct way to close a program started with:
open "| command"
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (3 / 13) |
Uptime: | 58:44:47 |
Calls: | 6,653 |
Calls today: | 5 |
Files: | 12,200 |
Messages: | 5,331,149 |