Re: Expect and log_user
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Expect and log_user

From: Don Libes <libes@nist.gov>
Date: Thu Jul 28 2005 - 22:20:55 CEST

Yes, log_user was only intended as a crude type of mechanism. If you
want finer control, take charge of all output yourself. The book
shows an example - by tracing expect_out(spawn_id), it writes the
output of each spawned proc to a different file. You can easily adapt
that idea to what you're interested in.

Don

dbariod@norspam.com writes:

> Hello,
>
> Does someone know if it is possible to define
> through expect the logging of the session per spawn_id.
> The "log_user" command seems to switch globally
> the logging on or off.
>
> ------------------------------
> David Bariod
> For email replace spam by tel
Received on Thu Sep 29 14:27:47 2005