remote ssh execution puzzle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The days of senility must be approaching .. Surely this has been solved and resolved many years ago.

$ ssh otherhost "uptime | awk '{print $1}'"

Statement of observation:
The local shell dutifully passes the text string including a $1 to the ssh program. However, the ssh program insists on expanding $1 BEFORE it attempts the remote execution. Therefore, it is impossible for the text string '$1' to appear on the remote command line.

In the example above, the remote command is:
   uptime | awk '{print  }'

Assuming that ssh respects special character escapes; all manner of escapes, double dollars, quote combinations, etc were attempted. No magical combination was found.

What am I missing?  My youth?  My Mind?

Thanks for playing.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux