On Tue, 12 Aug 2003 13:55:48 +0200
Henning Moll <newsScott@gmx.de> wrote:
> On Tuesday 12 August 2003 13:35, François Chenais wrote:
> > [1] ssh root@myhost "cat /etc/passwd | awk -F ':' '{ print $1; }'"
>
> ssh root@myhost cat /etc/passwd | awk -F ':' '{ print $1; }'
>
> should do the trick. cat runs remote, awk runs local... ;-)
>
;-D But in my "long" command, I use it in "for" statement which is executed on localhost instead of remote :-|
François
--
Debian SID
Linux tanna 2.6.0-test2 #10 Tue Aug 5 13:36:17 CEST 2003 i686 GNU/Linux
Linux Counter #59413
PGP fingerprint : 9AFA 15EC 96C9 F607 EBC1 DD41 70C5 F0E0 25A5 105B
Attachment:
pgp2KeEd6nYWO.pgp
Description: PGP signature