Re: expect script --error return

From: LHradowy (laura.hradowy_at_NOSPAM.mts.ca)
Date: 12/02/03


Date: Mon, 1 Dec 2003 22:13:09 -0600


"Cameron Laird" <claird@lairds.com> wrote in message
news:vsk0otlrmtb32d@corp.supernews.com...
> In article <CFNxb.28716$MW5.41790@news1.mts.net>,
> LHradowy <laura.hradowy@NOSPAM.mts.caaaaa> wrote:
> >I am trying to harden my expect script, and so far I have the "usual
prompts
> >covered" but what happens if for some reason the host that the expect
script
> >is logging into changes its screens? How can I account for that?
> .
> .
> .
> Yes.
>
> This is exactly the role of [expect]s's "timeout" keyword.
>
> You'll be best off to find your own copy of the Expect book.
> (Nearly) all answers are there.
>
> Rough sketch:
> expect {
> {first pattern} {
> do one thing
> }
> {second pattern} {
> do another thing
> }
> timeout {
> puts "See? We didn't detect any recognized pattern."
> }
> }
> --
>
> Cameron Laird <claird@phaseit.net>
> Business: http://www.Phaseit.net

Thank you, I thought that was what I needed to do. I do have you book, and
let me say that it is worse for wear. Many pages are dog ear'd and lots of
post it notes in it. Very good book, I definitely got my moneys worth!



Relevant Pages

  • Re: expect script --error return
    ... >>is logging into changes its screens? ... How can I account for that? ...
    (comp.lang.tcl)
  • Running a logon script under another account
    ... Does anyone know how to run a .vbs logon script under a different account ... the script installs a software package if it's not already installed on the ... machine that the user is logging onto. ...
    (microsoft.public.scripting.vbscript)
  • Re: Per-user public key/password selection possible?
    ... > On a HP-UX 11 system we have an account that was created by a script, ... > to prevent logging in to this account with password authentication. ...
    (SSH)
  • Re: Word does not open when run from Scheduler
    ... Try logging into the account the script is using. ... I built an application for a client that runs Word from a System Service, ...
    (microsoft.public.word.vba.general)
  • Protecting against dDOS bots (was: Newbie php problem)
    ... The form mail script posted that was used, ... requires the applicant to pass some kind of Turing test, ... Turing test if the account balance ever drops to zero. ... Log into the same account repeatedly, which consumes your credit ...
    (alt.php)