Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bad File Number Error in a Tcl Script...

Status
Not open for further replies.

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...
 
Just to be exhaustive, have you tried giving the -hls argument explicitly just for a test? Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top