Path: utzoo!attcan!uunet!pmafire!uudell!milano!cs.utexas.edu!swrinde!ucsd!pacbell.com!pacbell!sactoh0!jak From: jak@sactoh0.SAC.CA.US (Jay A. Konigsberg) Newsgroups: comp.unix.xenix.sco Subject: Re: how do you determine end of tape? (floppy) Message-ID: <4460@sactoh0.SAC.CA.US> Date: 12 Dec 90 03:26:11 GMT References: <79@gdx.UUCP> <2549@sixhub.UUCP> Organization: Sacramento Public Access Unix, Sacramento, Ca. Lines: 25 In article <79@gdx.UUCP> jay@gdx.UUCP (Jay A. Snyder) writes: > > the tar that comes with SCO xenix knows when I gets to the end of a > floppy, and then prompts for another. Does anyone out there know how > this is done? I want to write a program that I can pipe the output of > a program through so that I can write multiple floppies worth of data > to foppies. > The file /etc/default/tar tells tar how big the media is. You can specify it yourself. This will work for a 20MB tape: tar cvfbk /dev/rct0 20 61440 /usr /u c - collect data v - verbose (display file names) f - specify archive file (tape drive here) b - blocking factor (typically 10, 18, or 20) k - kbytes (1024 * 60) -- ------------------------------------------------------------- Jay @ SAC-UNIX, Sacramento, Ca. UUCP=...pacbell!sactoh0!jak If something is worth doing, it's worth doing correctly.