Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Expect problems

by GrandFather (Saint)
on Dec 15, 2005 at 22:54 UTC ( [id://517100]=note: print w/replies, xml ) Need Help??


in reply to Expect problems

Are you sure there is a trailing space in '>> Real server 144 - ' and that there are no extra characters (perhaps a cr character?)?


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Expect problems
by sunadmn (Curate) on Dec 16, 2005 at 14:26 UTC
    Ok so like I stated in my last post I have it working but for some reason I get it to get beyond the apply stage due to the fact that the next prompt looks the same. Below is a copy of the session when I do this manually:

    >> Main- /cfg/slb/real 144/ena
    Current status: disabled
    New status: enabled

    >> Real server 144 - apply
    ------------------------------------------------------------------
    Apply complete; don't forget to "save" updated
    configuration.

    >> Real server 144 - save
    Request will first copy the FLASH "active" config to "backup",
    then overlay FLASH "active" with new config.
    Confirm saving to FLASH y/n: y
    New config successfully saved to FLASH.

    >> Real server 144 - exit


    So as you can see after the apply at the >> Real server 144 - prompt next I should/want to send "save" but expect get's stuck on the "apply" and wont move on to the next case match so it's almost like the thing goes into a never ending loop. Does anyone know of a way to force it to move on??

    SUNADMN
    USE PERL

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://517100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found