Re: [EXPECT] Reading a response into a variable

From: Sektor van Skijlen (ethouris_at_wp.spamu.lubie.nie.pl)
Date: 08/04/04

  • Next message: Sektor van Skijlen: "Re: FAQ (unanswered): possible to use Tk without Tcl (in c/c++)"
    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
    

  • Next message: Sektor van Skijlen: "Re: FAQ (unanswered): possible to use Tk without Tcl (in c/c++)"

    Relevant Pages

    • Re: [EXPECT] Reading a response into a variable
      ... >> daily occurence for our office. ... Is there a way for me to capture the ... how can I capture the entire string that expect uses to find my ... > documentation. ...
      (comp.lang.tcl)
    • Re: Regex Capture problem
      ... "learned" my regex using a freeware utility that had slightly different ... was trying to capture instead of. ... I have used Regex utilities before, so I understand the concepts of text ... Function RESub(str As String, SrchFor As String, ReplWith As String) As String ...
      (microsoft.public.excel.programming)
    • Re: SQL - Capture Specific Text and Copy to New Column/row
      ... The script is: ... Please advise of how I may capture only the date/time data. ... wildcard characters as characters in the string. ... by the Option Compare setting of the module. ...
      (microsoft.public.access.modulesdaovba)
    • Re: Regular Expression Hangs
      ... You wouldn't need a regular expression to ... a single fixed string. ... Those patterns are defined by rules that are expressed in the ... will capture the following: ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: how to get all repeated group with regular expression
      ... string, such as string '123456', i tried re.findall*, ... nature to all regx engine or only to Python? ... issues that I can perfectly understand why Python works the way it does, ... Yes, you are right, but this way findallcapture only the 'top' group. ...
      (comp.lang.python)