[wellylug] ssh scripting
jumbophut
jumbophut at gmail.com
Fri May 20 21:22:21 NZST 2005
On 5/20/05, Jamie Baddeley wrote:
> 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.
>
scp scriptfile user at remotehost:/tmp/scriptfile
ssh user at remotehost 'bash /tmp/scriptfile; rm /tmp/scriptfile'
It seems somehow ugly, but it should work I think.
Of course, if you don't have write/delete permissions on the remote
host, that is a little more problematic.
--
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')
More information about the wellylug
mailing list