* Cecil Westerhof <
Cecil@decebal.nl>
| I am opening a program with 'open |progName'. This of-course I put in
| a catch block.
| At the moment I have the close also in a catch block. But is this
| really necessary? Is it possible that after a successful open the
| close could give an error?
As Harald said, any command in the pipeline exiting non-zero will
trigger an error in close(n) unless you close the channel in nonblocking mode.
man n open
[...]
If the command (or one of the commands) executed in the command
pipeline returns an error (according to the definition in exec),
!!! a Tcl error is generated when close is called on the channel
!!! unless the pipeline is in non-blocking mode then no exit status
is returned (a silent close with -blocking 0).
HTH
R'
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)