Search Results

Search: Posts Made By: tkhanna82
53,366
Posted By tkhanna82
How to run the following expect commands in a loop
#!/usr/bin/expect
spawn telnet 1.1.1.1
expect login*
send “admin\r”
expect Password*
send “abcdef123\r”
expect “Router#”
send “exit\r”


I want the above code to run in a loop such...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 10:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy