Date: Mon, 15 Oct 2007 01:31:17 +0200 From: J65nko <j65nko@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: help with text-append over SSH ? Message-ID: <19861fba0710141631x720891famdab607d2cae4e224@mail.gmail.com> In-Reply-To: <20071014003326.P37825@wojtek.tensor.gdynia.pl> References: <561095.99967.qm@web45614.mail.sp1.yahoo.com> <20071014003326.P37825@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/14/07, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> wrote: > > 'dd' command (among others) on the remote host ... so > > for instance, I can do things like this: > > > > ssh user@host rm -rf filename > > > > So, with all that in mind, how do I append the > > contents of a local file to a remote file, over SSH, > > using either 'echo' or 'dd' ? > > > > cat file |ssh user@host "cat >>file" > > replace cat with dd if you have to You can drop the first "cat" ssh user@host "cat >>file" <file =Adriaan=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19861fba0710141631x720891famdab607d2cae4e224>