I am using following version of Active Tcl on windows 10
C:\thread>tclsh
% puts $tcl_version
8.6
% package require Thread
2.6.6
% package require Expect
5.43.2
I am trying to use Expect in 2 threads. But puts to stdout not happening when package require called in both threads.
package require Thread
thread::create {
package require Expect
exp_log_user 1
puts “hello”
}thread::create {
package require Expect
exp_log_user 1
puts “hello2”
}after 2000
output:
C:\thread>tclsh samp2.tcl
helloC:\thread>
Can someone please help guide on this.
Thanks in advance.
uv.