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