So you have a script on the local machine and you want to run it remotely and pass arguments to it :
ssh user@remote 'cat | bash /dev/stdin param1 param2 .. paramN' < /usr/scripts/localscript.sh
😉 nJoy
So you have a script on the local machine and you want to run it remotely and pass arguments to it :
ssh user@remote 'cat | bash /dev/stdin param1 param2 .. paramN' < /usr/scripts/localscript.sh
😉 nJoy