remote ssh execution puzzle

Les Mikesell lesmikesell at gmail.com
Fri Apr 13 18:50:09 UTC 2007


Phil Meyer wrote:
> Till Maas wrote:
>> Phil Meyer wrote:
>>
>>  
>>> ssh otherhost "uptime | awk '{print $1}'"
>>>     
>>
>> Use:
>>
>> ssh otherhost "uptime | awk '{print \$1}'"
>>
>> Regards,
>> Till
>>
>>   
> $ ssh otherhost "uptime | awk '{print \$1}'"
> awk: cmd. line:1: {print \}
> awk: cmd. line:1:        ^ backslash not last character on line
> 

That works for me.  What kind of shell is otherhost running?

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the fedora-list mailing list