Date: Sat, 13 Oct 2007 12:08:16 +0200 From: Svein Halvor Halvorsen <svein.h@lvor.halvorsen.cc> To: Andrew Pantyukhin <infofarmer@FreeBSD.org> Cc: Giorgos Keramidas <keramida@ceid.upatras.gr>, Juri Mianovich <juri_mian@yahoo.com>, freebsd-questions@freebsd.org Subject: Re: help with text-append over SSH ? - dd: unknown operand >> Message-ID: <47109910.7040209@lvor.halvorsen.cc> In-Reply-To: <20071012235953.GB1554@amilo.cenkes.org> References: <20071012143730.GC3881@kobe.laptop> <687623.75032.qm@web45604.mail.sp1.yahoo.com> <20071012235953.GB1554@amilo.cenkes.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>> I want to append the contents of a local text file >>> to the contents of >>>> a remote text file, over SSH. : Andrew Pantyukhin wrote: > cat file1 | ssh user@host "dd -of file2" That will replace the contents of file2, not append it. Also it should be "dd of=file1". However, you can use "seek=n" to append, like this: cat file1 | ssh remote "dd of=file2 seek=n" ... where n is the length of file2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47109910.7040209>