From owner-freebsd-questions@FreeBSD.ORG Fri Oct 12 00:04:13 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 F037A16A418 for ; Fri, 12 Oct 2007 00:04:12 +0000 (UTC) (envelope-from juri_mian@yahoo.com) Received: from n10.bullet.re3.yahoo.com (n10.bullet.re3.yahoo.com [68.142.237.123]) by mx1.freebsd.org (Postfix) with SMTP id 7A04F13C45D for ; Fri, 12 Oct 2007 00:02:48 +0000 (UTC) (envelope-from juri_mian@yahoo.com) Received: from [68.142.237.87] by n10.bullet.re3.yahoo.com with NNFMP; 11 Oct 2007 23:49:05 -0000 Received: from [66.196.101.133] by t3.bullet.re3.yahoo.com with NNFMP; 11 Oct 2007 23:49:05 -0000 Received: from [127.0.0.1] by rrr4.mail.re1.yahoo.com with NNFMP; 11 Oct 2007 23:49:05 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 363874.13250.bm@rrr4.mail.re1.yahoo.com Received: (qmail 2114 invoked by uid 60001); 11 Oct 2007 23:49:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=GBIQzAYvAvmbx6fr4mUqOBm6eZKeG7E6P0wFQI7MMaeV7Ol9c2xzZIaqg763AGi2kIVdVH4mDJXBV/azXp5BsUwMZjV5R7d5z2+XZM7WPI2Fp3FoXSjwfODs5Tg0NXCEIYA6nOayNIlEIJRDEs6wZL6+/UsEuV27+Sf5Som3sQ0=; X-YMail-OSG: P4_e6qwVM1muQ8yIsAAGOQukm2PeE.q0AVCOu31s Received: from [71.137.14.83] by web45614.mail.sp1.yahoo.com via HTTP; Thu, 11 Oct 2007 16:49:04 PDT Date: Thu, 11 Oct 2007 16:49:04 -0700 (PDT) From: Juri Mianovich To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <561095.99967.qm@web45614.mail.sp1.yahoo.com> X-Mailman-Approved-At: Fri, 12 Oct 2007 11:58:56 +0000 Subject: 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: Fri, 12 Oct 2007 00:04:13 -0000 I have an account on a system where I cannot log in over SSH, but I _can_ run a limited set of commands remotely, over SSH. (I am in a jail of some sorts). I want to append the contents of a local text file to the contents of a remote text file, over SSH. Normally, I would do this locally with: cat file1 >> file2 But again, file2 is remote, and I can't log in there... I have access to the 'echo' command and the '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. ____________________________________________________________________________________ Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! http://tv.yahoo.com/collections/3658