SUMMARY: rsh and awk

From: Don Jones <donunix_at_yahoo.com>
Date: Wed May 01 2002 - 12:43:49 EDT
Thank you all:
Answers:

rsh cobra "ps -ef | grep bb | awk '{print \$2}'"
or 
rsh  cobra "(ps -ef | grep bb | awk \'{print $2}\')"
or
rsh -n cobra "ps -ef | grep bb | awk '{print $2}'"
or simply
rsh cobra ps -ef | grep bb | awk '{print $2}' 
with no quotes at all..

-DJ


------------------------------------------
On Mon, 29 Apr 2002 16:05:31 -0700 (PDT),
donunix@yahoo.com wrote:
> Hello Everyone,> > I have problem with awk working
with rsh:> 
> rsh cobra "ps -ef | grep bb | awk '{print $2}'"> >
Only this execute:> 
> csh -c ps -ef | grep bb | awk '{print }'> 
> Why $2 does not execute?! how can I fix it?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed May 1 12:46:41 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:42 EST