[wellylug] ssh scripting
Pete Black
pete at marchingcubes.com
Fri May 20 20:40:27 NZST 2005
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
-Pete
>Is it possible to script ssh commands?
>
>i.e. write a shell script like this:
>
>---------
>#!/usr//bin/ssh host.domain.co.nz
>df -h
>
>---------
>
>The idea is so I can run remote commands via a script and have the
>results via stdin...
>
>It's assuming I've already shared the keys..
>
>jamie
>
>
>
>
>
More information about the wellylug
mailing list