fixengineer
Technical User
Here is the code:
ssh -l login $userserver "cd $userpath; $mycommands"
At my company we have many Linux/UNIX servers and my script is supposed to automate navigation between the boxes. My script will reside on a single server and should be capable of taking user to another box, changes the directory, then passing control back to user. Problem is the above command runs and then returns you to the original box.
I ended up echoing the commands to the user, so they can copy and paste the commands. I want to eliminate that. The box should take you to the box and directory you need and then pass control to you. You should never have to do anything outside of the script to navigate.
Any ideas? This is a fundamental flaw in my script. Thanks!
ssh -l login $userserver "cd $userpath; $mycommands"
At my company we have many Linux/UNIX servers and my script is supposed to automate navigation between the boxes. My script will reside on a single server and should be capable of taking user to another box, changes the directory, then passing control back to user. Problem is the above command runs and then returns you to the original box.
I ended up echoing the commands to the user, so they can copy and paste the commands. I want to eliminate that. The box should take you to the box and directory you need and then pass control to you. You should never have to do anything outside of the script to navigate.
Any ideas? This is a fundamental flaw in my script. Thanks!