Hi,
I am currently using Tcl 8.0.5 and Tclblend 1.2.5. I plan to upgrade to the
latest versions soon to see if the problems go away. But wanted to know if
anyone has any thought on this. I just saw a discussion on thread safety of
tclblend, expect and Tcl. Things worked before bringing in tclblend 1.2.5
and now I am seeing i/o problems. Am I seeing these i/o problems because of
the interactions betwn tcl and java?
I seem to be running into problems using Expect after loading Tclblend into
the Tcl interpreter. I use Expect 5.28 with Tcl 1.2.5
I have in my code
"set f1 [open "|asynch_data_sacch.exec cab5-01 log" w+]"
which runs an expect script which opens a terminal server port program. When
we do this on the command line, everything works fine. But when I run the
script in Tcl and try to communicate with the expect session via $f1, we
soon get "error flushing "file47": broken pipe". Sometimes it happens after
one or two Flush commands, sometimes we can get a littlefarther, but it
always fails eventually.
I know I brought this up earlier too, but just to re-iterate.
Similarly, any Perl scripts we run from Tcl, which communicate
with open files themselves, always seem to be unable to communicate with
those files after some time.
For example: I run the following script which should return without errors:
if {[catch "exec SetBaud portname 9600" err]}
The perl script launches a telnet session, which uses the rawread function
in Perl to read info from the session. The rawread command always times out
waiting for data in the telnet session, even though the session provides the
info. Outside of Tcl, the program works fine. It is as if kicking off the
Perl script from Tcl somehow prevents Perl from seeing the data from its
telnet session.
Thanks
Suvarna
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.
An archive is available at http://www.mail-archive.com/[email protected]