jimregexp: rename local regex functions
[jimtcl.git] / examples / pipe.tcl
blob6b10dbdd95354126f81667e83a9b9864069b2886
1 lassign [socket pipe] r w
3 # Note, once the exec has the fh (via dup), close it
4 # so that the pipe data is accessible
5 exec ps aux >@$w &
6 $w close
8 $r readable {
9 puts [$r gets]
10 if {[eof $r]} {
11 $r close
12 set done 1
16 vwait done