home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / xenix / sco / 2715 < prev    next >
Encoding:
Text File  |  1992-08-18  |  2.2 KB  |  45 lines

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