[wellylug] ssh scripting
Grant McLean
grant at mclean.net.nz
Fri May 20 21:25:41 NZST 2005
On Fri, 2005-05-20 at 21:13 +1200, Jamie Baddeley wrote:
> On Fri, 2005-05-20 at 20:40 +1200, Pete Black wrote:
> > sure - this is super simple with ssh e.g.
> >
> > ssh user at host.com 'df -h' will give you the output of the df command
> > run on the remote host
>
> Hey,
>
> Sure. What I was wanting to do is run a series of commands remotely, and
> process the results locally. I could do a mean seqence of command|
> command etc, but I thought it might be funky to see if I could do it
> this way.
You can simply do this:
ssh hostname 'df; ls; date'
If that's not what you're after then perhaps you could restate what your
after.
Grant
More information about the wellylug
mailing list