From owner-freebsd-questions Sun Aug 25 13:18:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA01280 for questions-outgoing; Sun, 25 Aug 1996 13:18:07 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA01273 for ; Sun, 25 Aug 1996 13:18:05 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts16-line3.uoregon.edu [128.223.150.203]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id NAA26082 for ; Sun, 25 Aug 1996 13:02:01 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id NAA00271; Sun, 25 Aug 1996 13:02:02 -0700 (PDT) Date: Sun, 25 Aug 1996 13:02:02 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Francisco Reyes cc: FreeBSD questions Subject: Re: How to get tar to read input files from file? In-Reply-To: <199608250815.IAA30890@pop01.ny.us.ibm.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 25 Aug 1996, Francisco Reyes wrote: > I have a book which has a line like > tar -cvf /dev/fd0 'cat backup.list'>backup.log > > It is supposed to read the file names from a file called backup.list. > When I try it it dowsn't work. I tried also using that didn't work either. Well, what it appears to be doing is creating a tar archive to a floppy disk, backing up the files in backup.list, and outputting any messages to backup.log. I don't know whether /dev/fd0 or /dev/rfd0 is the right device though. It's dumping the output archive *directly* to the floppy disk, no filesystem or anything. > Any suggestions on how to pipe a file to tar to read input files? That should be correct. My guess would be that the the files in backup.list have to be on one line, like "/etc/rc /etc/rc.local /etc/netstart ..." and so on. Try looking at the tar man page 'man tar' for info. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major