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
Don
Don, please...
Could you show somewhere on the net an example that shows spawning two
separate processes and log the session with each of them into its separate
file?
About three times did I ask about it here and no procedure for that succeeded.
--
// _ ___ Michal "Sektor" Malecki <sektor(whirl)kis.p.lodz.pl>
\\ L_ |/ `| /^\ ,() <ethourhs(O)wp.pl>
// \_ |\ \/ \_/ /\ C++ bez cholesterolu: http://www.intercon.pl/~sektor/cbx
"Java does not have pointers!"
> Dnia 28 Jul 2005 16:20:55 -0400, Don Libes skrobie:
> > 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, please...
>
> Could you show somewhere on the net an example that shows spawning two
> separate processes and log the session with each of them into its separate
> file?
>
> About three times did I ask about it here and no procedure for that succeeded.
Probably because it's in the Expect book (page 408) and it's been
there for years and everyone (including me) is just too lazy to wrap
it up into an actual script :-P
Don
On Thu, 28 Jul 2005, Don Libes wrote:
> 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.
>
Ok thanks for the info.
In fact I'm trying to increase post-mortem analysis
of expect session in case of timeout, is there also
a way form tcl to programmatically access to the
internal manipulation of the expect buffers
(as presented by the command exp_internal).
I would like, for example, keep the several last pattern
match per spawn id, and be able to dump them in
case of unexpected failure (timeout/eof/...)