[mdlug] Remote shell scripts via ssh?

Mark Montague markmont at umich.edu
Mon Feb 26 14:51:04 EST 2007


On Mon, Feb 26, 2007 14:30, "Wojtak, Greg" <GregWojtak at quickenloans.com> 
wrote:
> Actually, this works:
>
> echo "command" | ssh user at machinea `'>>'`
>
>   
>>>  ssh user at machine.a.org <local_script.sh
>>>
>>>  doesn't work either. The best I've come up with is something like the
>>> following script:
>>>       

The following also works:

ssh user at machine.example.com /bin/sh <local_script.sh

                Mark Montague
                markmont at umich.edu





More information about the mdlug mailing list