Hi mohenoun,
Did you read the information about dependent session?
Are you unable (jump server does not support port forwarding) to use this feature? Or just unwilling to try it?
It's going to simplify things before we get into your actual script, which, by the way, includes multiple
Send() calls without an intervening
WaitForString().
This goes against the "best practice" outlined in the
scripting manual (section 4.2) that there should be a
WaitForString() following each
Send() command.