Hi Guys,
Further to my post yesterday I have got round the issue of not being able to use expect by using one of our unix machines to have the script running instead of the jumpbox itself. However my issue is I now have an extra bit it the script which is shh to the jumpbox which requires a ras token key to be entered.
How do I go about the the below ? I want the script to allow user interaction to enter the ras key and then pass control back to the script.
Im new to scripting so used auto expect, Thanks for all your support.
send -- "ssh ******@*******\r"
expect -exact "ssh ******@********\r
Enter PASSCODE:"
send -- "*********\r" - ras token required
expect -exact "\r
Further to my post yesterday I have got round the issue of not being able to use expect by using one of our unix machines to have the script running instead of the jumpbox itself. However my issue is I now have an extra bit it the script which is shh to the jumpbox which requires a ras token key to be entered.
How do I go about the the below ? I want the script to allow user interaction to enter the ras key and then pass control back to the script.
Im new to scripting so used auto expect, Thanks for all your support.
send -- "ssh ******@*******\r"
expect -exact "ssh ******@********\r
Enter PASSCODE:"
send -- "*********\r" - ras token required
expect -exact "\r