On 04/21/2012 07:51 AM, lina wrote:
Thanks, I didn't realize that the ssh p3600 'do something' can do
something without being in the server.
Yes -- providing a command to ssh is a very useful. Check out the
manual page for more information:
$ man ssh
Taking it one step further, anything after the command runs on the local
machine:
$ ssh p3600 'cat .bashrc' | wc
23 63 418
I use this trick on my backup server to create tarballs on remote
machines and save them locally.
David
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/