home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi.admin:33 comp.sys.sun.admin:9511
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!usc!cs.utexas.edu!sun-barr!ames!sgi!fido!sam.wpd.sgi.com!pj
- From: pj@sam.wpd.sgi.com (Paul Jackson)
- Newsgroups: comp.sys.sgi.admin,comp.sys.sun.admin
- Subject: Re: Help on cpio: how to read backup tapes with cpio command?
- Date: 16 Dec 1992 21:59:37 GMT
- Organization: Silicon Graphics, Research & Development
- Lines: 29
- Distribution: world
- Message-ID: <1go8s9INN4pa@fido.asd.sgi.com>
- References: <1992Dec16.192634.19294@lambda.msfc.nasa.gov>
- Reply-To: pj@sgi.com
- NNTP-Posting-Host: sam.wpd.sgi.com
- Keywords: cpio help
-
- In article <1992Dec16.192634.19294@lambda.msfc.nasa.gov>, mahmood@lambda.msfc.nasa.gov (Rafique Mahmood) writes:
- |> I need to write a program which will make a listing of the
- |> backup tapes. I tried 'cpio -tBi /dev/nrst1', it did not work.
-
- If you look at the man page for cpio carefully (do "man cpio") you
- will see:
-
- cpio -i[BbcdmrtuvVfsSb6k] [-C bufsize] [[-I file] [-M message]] [pattern ...]
-
- and a bit later:
-
- cpio -i (copy in) extracts files from the standard input
-
- Observe that the archive or tape device is _not_ listed amongst
- the expected arguments of "cpio -i", and that it expects input
- instead from standard input. This means that the following might
- work better for you:
-
- cpio -tBi < /dev/nrst1
-
- There may have been other questions in your posting, but I could
- not quite understand what you were asking, so my apologies for not
- answering what else you might be asking.
-
- --
-
- I won't rest till it's the best ...
- Software Production Engineer
- Paul Jackson (pj@sgi.com), x1373
-