Search Results

Search: Posts Made By: vistastar
18,901
Posted By vistastar
Maybe this works: #!/usr/bin/expect spawn...
Maybe this works:

#!/usr/bin/expect
spawn ssh usr1@IP_of_B1 ssh usr2@IP_of_B2 pwd #pwd is the command you wanna execute on B2
expect "password"
send "passowrd_of_usr1\n"
expect "password"...
Showing results 1 to 1 of 1

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