[CentOS] script help

Fri Oct 26 10:56:05 UTC 2007
Anup Shukla <anup at iamcool.net>

Anup Shukla wrote:
> Tom Brown wrote:
>>
>>>
>>> How about
>>> # MOUNTER=`ssh $i "mount | grep data | awk '{print \$1,\$2,\$3}'"`
>>
>> alas no
>>
>> MOUNTER=`ssh $i 'mount | grep data | awk "{print \$1, \$2, \$3}"'`
>>
>> results in
>>
>> awk: {print , , }
>> awk:        ^ syntax error
>> awk: {print , , }
>> awk:          ^ syntax error
>> awk: {print , , }
>> awk:            ^ syntax error
>> awk: cmd. line:1: {print , , }
>> awk: cmd. line:1:             ^ unexpected newline or end of string
>>
> 
> Sorry,
> 
> MOUNTER=`ssh $i 'mount | grep data | awk "{print \\$1,\\$2,\\$3}"'`
> 

Correction.
MOUNTER=`ssh $i "mount | grep data | awk '{print \\$1,\\$2,\\$3}'"`

This is what i tried and worked for me.

Regards,
A.S