i have following code:
set host [lindex [string tolower $text] 0]
set hostpath "/usr/local/bin/host"
set input [open "|$hostpath $host "]
while {![eof $input]} {
set tmp [gets $input]
putchan $channel "$tmp"
}
problem is that i got on shell:
tR 21964 0.0 0.0 0 0 ? Z May04 0:00 [host <defunct>]
tR 21977 0.0 0.0 0 0 ? Z May04 0:00 [host <defunct>]
processes after executing that a few times.
Someone knows how to fix/avoid that?
Thanx in advance, tR