From owner-freebsd-questions Tue Feb 26 5:34: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 305BE37B400 for ; Tue, 26 Feb 2002 05:33:58 -0800 (PST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.11.6/8.11.4) id g1QDXcC52317; Tue, 26 Feb 2002 14:33:38 +0100 (CET) (envelope-from stijn) Date: Tue, 26 Feb 2002 14:33:37 +0100 From: Stijn Hoop To: Odhiambo Washington Cc: freebsd-questions@freebsd.org Subject: Re: tar to a remote box Message-ID: <20020226143337.H49919@pcwin002.win.tue.nl> References: <20020226132446.GF83827@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="cYtjc4pxslFTELvY" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020226132446.GF83827@ns2.wananchi.com>; from wash@wananchi.com on Tue, Feb 26, 2002 at 04:24:46PM +0300 X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --cYtjc4pxslFTELvY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Feb 26, 2002 at 04:24:46PM +0300, Odhiambo Washington wrote: > I know for sure that this is possible but I can't figure out how ;-? >=20 > tar -cZf file.tgz | ssh remote_box -l username | put the file there >=20 > I have a machine with limited disk space so I don't want to write the > .tgz locally. You specify the 'f' option to tar, with a local filename. Of course tar wants to write to the local disk. Try this: $ tar czf - | ssh user@remote 'tar xzvf -' You'll get a listing of every file succesfully unpacked on the remote system. HTH, --Stijn --=20 ] Nothing safer than a 'cat /dev/wallet | grep $price > real-person; \ ] mv $thing-to-buy $my-case I'd prefer 'mv $thing-to-buy $my-case && cat /dev/wallet | \ grep $price > real-person -- Anonymous, freebsd-questions@freebsd.org, in message <200108020628.IAA11775@hugo10.ka.punkt.de> --cYtjc4pxslFTELvY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8e46xY3r/tLQmfWcRAjmHAJ9/d/mHJd1rjeW8rHxpitjS7+WjiQCeKqTF RwVvUWXIdYL/rC1uF+qnrUk= =RYiJ -----END PGP SIGNATURE----- --cYtjc4pxslFTELvY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message