home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!decwrl!pa.dec.com!dynamix!david@uu3.psi.com
- From: david@dynamix.com (David L Jarvis)
- Subject: Re: cpio problem
- Organization: SOFTWARE / DYNAMIX
- Message-ID: <9208190934.AA04585@dynamix.com>
- Date: Wed, 19 Aug 92 9:34:51 EDT
- X-Received: by usenet.pa.dec.com; id AA15810; Wed, 19 Aug 92 09:26:17 -0700
- X-Received: by inet-gw-1.pa.dec.com; id AA03473; Wed, 19 Aug 92 09:25:48 -0700
- X-Received: from dynamix.UUCP by uu3.psi.com (5.65b/4.0.071791-PSI/PSINet)id AA19828; Wed, 19 Aug 92 12:25:35 -0400
- X-Received: by dynamix.com (smail2.5c)id AA04589; 19 Aug 92 09:34:51 EDT (Wed)
- X-To: comp.unix.xenix.sco.usenet (comp.unix.xenix.sco)
- X-In-Reply-To: <9208181054.AA02399@dynamix.com>; from "David L Jarvis" at Aug 18, 92 10:54 am
- X-Mailer: ELM [version 2.3 PL11]
- Lines: 28
-
- > I'm having some problems with find/cpio ...
- > run as root (thru cron and not)
- > find / -print | cpio -ovB > /dev/rjt0
- > works fine
- > find / -depth -print | cpio -ovB > /dev/rjt0
- > gives the following warning message:
- > cpio: WARNING: Cannot obtain information about file: "".
-
- I've figured out *what* is causing this, but now I'd like to
- know *why*. I did a find / -print > /tmp/list and then did
- a find / -depth -print > /tmp/list2 and compared the two.
- Cpio was choking because using the -depth option causes a blank
- line at the end of the list. Why??? I have RTFM, multiple
- times and multiple reference books. I think I understand what
- the -depth does but I still don't have a clue why it would
- produce a blank line. Also, I'm still not convinced I need
- it. If I'm running this as root, won't find traverse any
- directories anyway? (and if I make sure that all dirs have
- execute permissions for the owner, find should traverse them
- in any case, right?)
-
- Any helpful insight would be much appreciated!
- Best Regards,
-
- #----------------------------------------------------------------------#
- # David L. Jarvis SOFTWARE / #
- # david@dynamix.com / DYNAMIX #
- #----------------------------------------------------------------------#
-