SSH and multiple commands
Posted: Sun Jul 08, 2018 12:30 am
What I'd really like to use is:
but alas, with the onset of setclienv, these parameters are no more. So I'm left with:
This is ugly, but it works in the CLI. However, I want to run this remotely, and the following does not work:
So, any idea on how I can get multiple commands to work in an ssh session? I know about plink -m <script>. I'm running this on linux and would rather not install plink as it adds dependencies/reduces portability.
Code: Select all
> showvv -nohdtot -csvtable
but alas, with the onset of setclienv, these parameters are no more. So I'm left with:
Code: Select all
> setclienv nohdtot 1; setclienv csvtable 1 ; showvv
This is ugly, but it works in the CLI. However, I want to run this remotely, and the following does not work:
Code: Select all
> ssh me@my3PAR "setclienv nohdtot 1; setclienv csvtable 1 ; showvv"
So, any idea on how I can get multiple commands to work in an ssh session? I know about plink -m <script>. I'm running this on linux and would rather not install plink as it adds dependencies/reduces portability.