Re: [EXPECT] Reading a response into a variable
From: Sektor van Skijlen (ethouris_at_wp.spamu.lubie.nie.pl)
Date: 08/04/04
- Previous message: Chris: "[EXPECT] Reading a response into a variable"
- In reply to: Chris: "[EXPECT] Reading a response into a variable"
- Next in thread: Jesse Englert: "Re: [EXPECT] Reading a response into a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 4 Aug 2004 18:49:17 +0000 (UTC)
Dnia 4 Aug 2004 11:45:29 -0700, Chris skrobie:
> I'm currently using EXPECT to automate a telnet session that is a
> daily occurence for our office. Is there a way for me to capture the
> entire string that responds after I issue a send command? In other
> words, how can I capture the entire string that expect uses to find my
> expect qualifier?
$expect_out(buffer)
However it contains the whole string incoming, not hashing into lines (but you
can use [split $out "\n"] ).
-- // _ ___ Michal "Sektor" Malecki <sektor(whirl)kis.p.lodz.pl> \\ L_ |/ `| /^\ ,() <ethourhs(O)wp.pl> // \_ |\ \/ \_/ /\ C++ bez cholesterolu: http://www.intercon.pl/~sektor/cbx
- Previous message: Chris: "[EXPECT] Reading a response into a variable"
- In reply to: Chris: "[EXPECT] Reading a response into a variable"
- Next in thread: Jesse Englert: "Re: [EXPECT] Reading a response into a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|