> I have an Expect script which I'm exec'ing from AOLserver.  This
> works, and the inefficiency of forking doesn't really matter in this
> case.  But it's annoying, as it means I can only communicate with the
> Expect script via command line arguments and stdin/stdout/stderr.
>
> I'd much rather just have the Expect Tcl API directly available in
> AOLserver.  But is that in fact feasible?  Is there any version of
> Expect which can be dynamically loaded into AOLserver (or plain tclsh
> for that matter), via 'package require', the modules list in
> AOLserver's config file, or some other such mechanism?  For AOLserver
> 3.3, or 4.0?

Expect is not a thread-safe extension.  It would be easy to make
thread-safe with large locks (which you could even do with the
tcl level apis), but fine-grained thread-safety would be hard due
to the type of unix APIs used.

That said, you should be able to make it work, but I would recommend
a pass through the APIs for gross thread-safety abuses first.

  Jeff Hobbs                     The Tcl Guy
  Senior Developer               http://www.ActiveState.com/
      Tcl Support and Productivity Solutions


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to