fixengineer
Technical User
Korn-Shell on Sun/GNU Linux
I need to be able to run multiple commands romotetly. For example, from box1 run ls and pwd commands on box2.
This is what I tried:
ssh -l login boxname ls; pwd
With the above command grouping this is the result:
Command1=run ls on remote box
Command2=run pwd(locally)
I need:
Run commands1 and 2 on remote box.
Here is the idea. We have several servers that we need to go to all the time and it takes too much time login in and out of all the boxes and navigating around the directories. On top of that we have multiple windows open all the time so it's a big time consuming mess. I'm building a script that will produce a fake prompt and then mirror any command you type on the remote box. So basically anything you type will be run on the remote box. For every command the user types I want the script to login to box, go to a directory and run the users commands there. Problem is ssh will only allow one command at a time.
I need to be able to run multiple commands romotetly. For example, from box1 run ls and pwd commands on box2.
This is what I tried:
ssh -l login boxname ls; pwd
With the above command grouping this is the result:
Command1=run ls on remote box
Command2=run pwd(locally)
I need:
Run commands1 and 2 on remote box.
Here is the idea. We have several servers that we need to go to all the time and it takes too much time login in and out of all the boxes and navigating around the directories. On top of that we have multiple windows open all the time so it's a big time consuming mess. I'm building a script that will produce a fake prompt and then mirror any command you type on the remote box. So basically anything you type will be run on the remote box. For every command the user types I want the script to login to box, go to a directory and run the users commands there. Problem is ssh will only allow one command at a time.