remote ssh execution puzzle
Todd Zullinger
tmz at pobox.com
Fri Apr 13 19:38:06 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
Hmmm, it works for me. I tested against remote hosts running
openssh-4.2p1 and openssh-3.1p1, as well as against a more current FC6
openssh server (4.3p2-19.fc6). Is there something funky about the
shell on 'otherhost' or perhaps the version of awk?
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
If you're not confused, you're not paying attention
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20070413/632f508b/attachment-0002.bin
More information about the users
mailing list