Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!cornell!batcomputer!rpi!uupsi!rodan.acs.syr.edu!goedel.top.cis.syr.edu!mitanu From: mitanu@goedel.top.cis.syr.edu (Mitanu Paul) Newsgroups: comp.unix.questions Subject: Using awk with rsh Keywords: awk, rsh Message-ID: <1991Jun19.143911.22217@rodan.acs.syr.edu> Date: 19 Jun 91 18:39:09 GMT References: <9105241726.AA16913@?lri.uwo.ca> <49494@ut-emx.uucp> Reply-To: mitanu@top.cis.syr.edu (Mitanu Paul) Organization: CIS Dept., Syracuse University Lines: 32 Hi, I have tried to use awk with rsh, 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 Question: Is this a bug of awk or that of rsh? Is there something which I am missing? Please send me e-mail at mitanu@top.cis.syr.edu If there is enough interest, I'll post a summary. I know the following: 1. awk works OK on the remote machine. The command ps -l | awk '{ print $4}' gives the desired output on spica. 2. Commands like rsh spica "ps -l | wc" work OK. Thanks. -- Mitanu Paul