I\'m trying to use Expect in a Bash script to provide the SSH password. Providing the password works, but I don\'t end up in the SSH session as I should. It goes back strait
Another way that I found useful to use a small Expect script from a Bash script is as follows.
... Bash script start Bash commands ... expect - <
This works because ...If the string "-" is supplied as a filename, standard input is read instead...
...If the string "-" is supplied as a filename, standard input is read instead...