when I tried to catch the error with the following:
set fout [open C:/temp/expectService.txt a]
puts $fout "Loading expect package."
if {[catch {package require Expect} errorCode]} {
puts $fout $errorCode
flush $fout
} else {
puts $fout "expected loaded ok"
flush $fout
}
close $fout
all I got was: "Loading expect package."
When I tried to run it as an application, I got what I expected:
Loading expect package.
expected loaded ok
My system:
Windows xp, sp2
ActiveState tcl: 8.4.16
Can somebody help?