SUMMARY: rsh and awk

2007-12-24 22:36:00

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 at 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

Comments

Got something to say?

You must be logged in to post a comment.