![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there a way to ask expect wait for sometime before running the next send command ? | qiulang | Shell Programming and Scripting | 0 | 03-04-2009 02:57 AM |
| expect-string length problom | sudheer157 | UNIX for Advanced & Expert Users | 2 | 02-06-2009 10:36 AM |
| wait command - cat it wait for not-chile process? | alex_5161 | Shell Programming and Scripting | 2 | 06-26-2008 06:14 PM |
| check exit status - Expect Script | iamcool | Shell Programming and Scripting | 1 | 01-02-2008 09:07 AM |
| Checking the header and trailer for a given string and if not found, exit out of the | er_ashu | UNIX for Dummies Questions & Answers | 2 | 11-08-2007 09:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
expect wait --More-- string and exit
Hi
I am programing a expect script on debian, I connected to a firewall to get configuration copy via telnet or ssh but Because of firewall show configuration console wait and print --More-- need press space key at least 100.Help me please. firewall output like this ![]() Quote:
my expect script is like this Code:
***************expect.sh**********
#!/bin/expect
spawn telnet 10.1.1.1
expect -re "Login" {
send "admin";
}
expect -re "Password" {
send "123";
}
expect -re "firewall#" {
send "show config";
}
exit
***********bash command***********
Debian#./expect.sh > backupfirewall.cfg
**********************************
Last edited by Neo; 1 Week Ago at 03:24 PM.. Reason: format please: use code and quote tags! |
|
||||
|
Quote:
Hi Please show me on my script correct form. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|