Date: Thu, 11 Oct 2007 16:49:04 -0700 (PDT) From: Juri Mianovich <juri_mian@yahoo.com> To: freebsd-questions@freebsd.org Subject: help with text-append over SSH ? Message-ID: <561095.99967.qm@web45614.mail.sp1.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?561095.99967.qm>
