From owner-freebsd-questions@FreeBSD.ORG Sat Oct 13 22:34:10 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98A1116A419 for ; Sat, 13 Oct 2007 22:34:10 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id DC86F13C4B2 for ; Sat, 13 Oct 2007 22:34:09 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id l9DMY6WN037844; Sun, 14 Oct 2007 00:34:06 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id l9DMY5bw037841; Sun, 14 Oct 2007 00:34:05 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 14 Oct 2007 00:34:05 +0200 (CEST) From: Wojciech Puchar To: Juri Mianovich In-Reply-To: <561095.99967.qm@web45614.mail.sp1.yahoo.com> Message-ID: <20071014003326.P37825@wojtek.tensor.gdynia.pl> References: <561095.99967.qm@web45614.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: help with text-append over SSH ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2007 22:34:10 -0000 > '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' ? > > Thanks. > > cat file |ssh user@host "cat >>file" replace cat with dd if you have to > ____________________________________________________________________________________ > Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! > http://tv.yahoo.com/collections/3658 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >