From owner-freebsd-questions@FreeBSD.ORG Fri Oct 12 12:12:30 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 1CB1A16A417 for ; Fri, 12 Oct 2007 12:12:30 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq1.tilbu1.nb.home.nl (smtpq1.tilbu1.nb.home.nl [213.51.146.200]) by mx1.freebsd.org (Postfix) with ESMTP id C00D513C467 for ; Fri, 12 Oct 2007 12:12:29 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [213.51.146.188] (port=40218 helo=smtp3.tilbu1.nb.home.nl) by smtpq1.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1IgJNU-0001v2-Ah; Fri, 12 Oct 2007 14:12:28 +0200 Received: from cp268254-a.landg1.lb.home.nl ([213.51.103.48]:54161 helo=ra.egypt.nl) by smtp3.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1IgJNR-0000rF-Lw; Fri, 12 Oct 2007 14:12:25 +0200 Received: from www.boosten.org (localhost.egypt.nl [127.0.0.1]) by ra.egypt.nl (Postfix) with ESMTP id 1EDD139877; Fri, 12 Oct 2007 14:12:25 +0200 (CEST) Received: from 212.159.200.167 (proxying for 172.21.129.43) (SquirrelMail authenticated user peter) by www.boosten.org with HTTP; Fri, 12 Oct 2007 14:12:25 +0200 (CEST) Message-ID: <61979.212.159.200.167.1192191145.squirrel@www.boosten.org> In-Reply-To: <561095.99967.qm@web45614.mail.sp1.yahoo.com> References: <561095.99967.qm@web45614.mail.sp1.yahoo.com> Date: Fri, 12 Oct 2007 14:12:25 +0200 (CEST) From: "Peter Boosten" To: "Juri Mianovich" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean 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: Fri, 12 Oct 2007 12:12:30 -0000 On Fri, October 12, 2007 01:49, Juri Mianovich wrote: > > 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 (amon= g > others) on the remote host ... so for instance, I can do things like th= is: > Just did some testing and this should work: cat localtext | ssh remote "cat >> remotetext" Peter --=20 http://www.boosten.org