Guest_imported
New member
- Jan 1, 1970
- 0
When I try to perform a process in a script it returns:
Tcl error [hls]: couldn't duplicate input handle: bad file number
I am running windows2000 and this is the script section:
set stat [exec D:/qstat/qstat.exe -Ts server.qst -Tp players.qst -hls $arg]
I have also tried it like this:
set stat [open "|D:/qstat/qstat.exe -Ts server.qst -Tp players.qst -hls $arg" r]
fconfigure $stat -buffering line
while {![eof $stat]} {
if {[gets $stat line]} {
puts $line
}
}
Any input to get rid of the error would be greatly appreciated...
Tcl error [hls]: couldn't duplicate input handle: bad file number
I am running windows2000 and this is the script section:
set stat [exec D:/qstat/qstat.exe -Ts server.qst -Tp players.qst -hls $arg]
I have also tried it like this:
set stat [open "|D:/qstat/qstat.exe -Ts server.qst -Tp players.qst -hls $arg" r]
fconfigure $stat -buffering line
while {![eof $stat]} {
if {[gets $stat line]} {
puts $line
}
}
Any input to get rid of the error would be greatly appreciated...