remote ssh execution puzzle

Andy Green andy at warmcat.com
Fri Apr 13 18:08:15 UTC 2007


Phil Meyer wrote:

> $ ssh otherhost "uptime | awk '{print \$1}'"
> awk: cmd. line:1: {print \}
> awk: cmd. line:1:        ^ backslash not last character on line

try using '' instead of "" (and no backslash)?

-Andy




More information about the fedora-list mailing list