[plug] multiple commands in a single ssh connection
gregory.orange at metoceanengineers.com
Fri Oct 10 12:20:44 WST 2008
Adam Hewitt wrote:
> Hi All,
> I have a requirement to write a script that is able to send multiple
> lines of commands via a single ssh connection. I have tried a whole
> bunch of things but nothing seems to be working and google isn't being
> Is this actually possible and if so can someone give me a pointer?
tar cf - . | ssh username at host '(cd /newdir; tar xf -)'
Does that help?
More information about the plug