Using awk with rsh
Georg Wittig
wittig at gmdzi.gmd.de
Fri Jun 21 17:34:48 AEST 1991
mitanu at goedel.top.cis.syr.edu (Mitanu Paul) writes:
> rsh spica "ps -l | awk '{ print $4}'"
>
>and here is what I get:
>
> F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND
>20488200 109 2548 2547 1 15 0 96 0 kernelma IW pc 0:00 -csh (csh)
>20008000 109 2599 2548 0 1 0 292 0 select IW pc 0:05 emacs p2.pl
>
This is a quoting problem of your shell. Try
rsh spica 'ps -l | awk '"'"'{ print $4}'"'"
--
Georg Wittig GMD-Z1.IT P.O.Box 1240 | "Freedom's just another word
D-W-5205 St. Augustin 1 (Germany) | for nothing left to lose"
email: wittig at gmdzi.gmd.de | (from "Me and Bobby McGee",
telephone: (+49) 2241 14-2294 | Janis Joplin, Kris Kristofferson)
More information about the Comp.unix.questions
mailing list