Re: running remote commands

From: Paul Hink (email_at_p-hink.de)
Date: 06/20/05


Date: 20 Jun 2005 20:56:49 GMT

Payal <payalrathod@gmail.com> wrote:

> I want to append contents of $HOME/foo to remote@example.net:bar
> How do I do that from ssh without login in?
> I am looking at something like,
> $ ssh example.net ls

$ ssh remote@example.net "cat >>bar" <"$HOME/foo"

Paul