Using awk with rsh
Mitanu Paul
mitanu at goedel.top.cis.syr.edu
Thu Jun 20 04:39:09 AEST 1991
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 at 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
More information about the Comp.unix.questions
mailing list