I realise this might be a stupid question, but I've been trying to follow the advice on the following post https://stackoverflow.com/questions/16928004/how-to-enter-ssh-password-using-bash
However, I've come up to a problem. I installed expect with sudo apt-get install expect
but now embarrassingly I can't figure out where the script interpreter is. It doesn't seem to be in the normal paths where people look to (i.e /bin/
or /usr/bin/
).
It does seem to have installed, since $ expect
seems to work, but I just can't use the interpreter (i.e I try to shebang it like everyone else with #!/bin/sh/expect
and it gives an error).