I can't remember the exact arguments, but you need to specify that SSH is running batch mode. I don't think this is covered in the man page (if you're running F-Secure's SSH), so do some Googling and you'll find the correct way of doing it.
When you execute the script, do it as follows:
. scriptName
This will execute the script within the current shell instead of forking a new shell to execute the script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.