Re: Regular expressions

From: adey (adey_at_forge.co.uk)
Date: 10/28/03

  • Next message: nobull_at_mail.com: "Re: Sendmail problem"
    Date: Tue, 28 Oct 2003 12:37:13 +0000 (UTC)
    
    

    On Sun, 29 Jun 2003 21:05:50 -0500, "mark" <mark_evans029@yahoo.com>
    wrote:

    >i am attempting to write a script using Net::Telnet. The script telnets to
    >a machine
    >logs in and issues a command to list the config. Tthe output of the command
    >pauses
    >about every screenfull and gives the user the prompt " --More-- ". The
    >script
    >contains the followin code to account fot the prompt.
    >
    >$telnet->waitfor('/-\-More\-\- $/i');
    >$telnet->print('\s');
    >
    >the script does not proceed past the " --More-- " prompt. this problems
    >seems to have stumpt me. does anyone have any suggestions for me?
    >
    >Thanks
    >mark
    >
    >
    Hi Mark,

    I use the module all the time. The non Perl solution to your problem
    is this;

    I would suggest you command the machine to dump the whole of the
    config in one go.

    For instance, if you are attempting to list the config on a Cisco
    router, you could issue the command "term len 0" prior to issuing the
    command to list the config.

    Adey


  • Next message: nobull_at_mail.com: "Re: Sendmail problem"

    Relevant Pages

    • RE: FreeBSD 4.7 Syslogs
      ... Copyright 1992-2002 The FreeBSD Project. ... Invalid command or syntax. ... config> di lnc0 ... Well since you are new to FBSD and since the syslogd -d commands ...
      (freebsd-questions)
    • Re: [SLE] nvidia handholding
      ... Return to init 5 and proceed and screen ... The Rotate function is more for LCD style displays the can be adjusted so ... Then as I do, command: ... Make the changes back to a working config (or try a variation or other ...
      (SuSE)
    • RE: FreeBSD 4.7 Syslogs
      ... >Invalid command or syntax. ... >config> di lnc0 ...
      (freebsd-questions)
    • Re: setup network help
      ... "net config workstation commands to work now?thanks for fast repoonse. ... Is there a run command to reset network for both PC's?thanks ... Ethernet adapter Local Area Connection: ...
      (microsoft.public.windowsxp.network_web)
    • Re: Starting ISC NTP -4.2.4
      ... but Iam not able to start the service. ... # prompt comes back. ... log file with a logfile command in your config file. ...
      (comp.protocols.time.ntp)