Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!caen!ox.com!math.fu-berlin.de!uniol!unido!gmdzi!wittig From: wittig@gmdzi.gmd.de (Georg Wittig) Newsgroups: comp.unix.questions Subject: Re: Using awk with rsh Keywords: awk, rsh Message-ID: <4970@gmdzi.gmd.de> Date: 21 Jun 91 07:34:48 GMT References: <9105241726.AA16913@?lri.uwo.ca> <49494@ut-emx.uucp> <1991Jun19.143911.22217@rodan.acs.syr.edu> Organization: GMD - The German National Research Center for Computer Science Lines: 19 mitanu@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@gmdzi.gmd.de | (from "Me and Bobby McGee", telephone: (+49) 2241 14-2294 | Janis Joplin, Kris Kristofferson)