[plug] multiple commands in a single ssh connection

Andrew Howell andrew at it.net.au
Fri Oct 10 12:13:50 WST 2008


Just separating commands with a ; usually works for me. But sometimes it's
easier to write a shell script on the host your sshing to and execute that.
Andrew

2008/10/10 Adam Hewitt <ahewitt at theozhewitts.com>

> 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
> friendly.
>
> Is this actually possible and if so can someone give me a pointer?
>
> Cheers,
>
> Adam.
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>



-- 
Andrew Howell
andrew at it.net.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20081010/0f73143f/attachment.html>


More information about the plug mailing list