home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / 19050 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.2 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!fido!shankar
  2. From: shankar@sgi.com (Shankar Unni)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Shell script problem
  5. Message-ID: <1jpmeaINN18c@fido.asd.sgi.com>
  6. Date: 22 Jan 93 20:46:02 GMT
  7. References: <81288@hydra.gatech.EDU>
  8. Organization: Silicon Graphics, Inc.
  9. Lines: 21
  10. NNTP-Posting-Host: boris.wpd.sgi.com
  11. X-Newsreader: Tin 1.1 PL5
  12.  
  13. Robert E. Minsk (ccoprrm@prism.gatech.EDU) wrote:
  14.  
  15. > "write some stuff in $SLATEDIR"
  16. > [...] 
  17. > The files are removed but not the directory.  So I tried changing the trap to
  18. > trap "rm -rf $SLATEDIR;rmdir $SLATEDIR" 0 1 2 3 15, but then it returns
  19. > Directory not empty.  Is this a problem with my shell script or with 4.0.5a?
  20.  
  21. No, it means that during the "write some stuff" step, a file got
  22. created in $SLATEDIR that you do not have permission to remove. It may
  23. be a subdirectory under $SLATEDIR with no write permission for you.
  24.  
  25. Or it may be a file owned by someone else (maybe root?) in a directory
  26. with the "sticky" bit on ("t" in the last permissions letter when the
  27. directory is displayed using ls -ld).
  28.  
  29. You may want to remove that "rm statement" and look at all the files
  30. created under $SLATEDIR.
  31. --
  32. Shankar Unni                E-Mail:    shankar@sgi.com
  33. Silicon Graphics Inc.            Phone:    +1-415-390-2072
  34.