Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!glyph!moji!ahh From: ahh@moji.uucp (Andy Heffernan) Newsgroups: comp.unix.amiga Subject: Re: uucp cleanup script Message-ID: <120@moji.uucp> Date: 3 Jun 91 23:04:40 GMT References: <104374@becker.UUCP> Reply-To: ahh@moji.uucp (Andy Heffernan) Organization: Moji Computing Lines: 28 In article <104374@becker.UUCP> bdb@becker.UUCP (Bruce D. Becker) writes: -> ->in Amiga Unix System V Release 4, version 1.1, there ->is a misfeature in the "uudemon.cleanup" script: -> -> SPOOL=/var/spool/uucp -> [...] -> cd $SPOOL -> if [ "`pwd`" != "$SPOOL" ]; then -> ... mail error message to admin ... -> ->This has been in the script for perhaps 5-6 years. -> ->It breaks under SysVr4 because "/var/spool" is a ->symbolic link to "/usr/spool"; when the cd is done, ->the working directory is now "/usr/spool/uucp" (at ->least according to /bin/sh - ksh should succeed). [...] This can be fixed by running the script with ksh instead of sh. (I think you knew that.) Change to top line from #!/bin/sh to #!/usr/bin/ksh. No more bogus "Unable to chdir..." messages in uucp's mailbox. -- $BJ8;z(J Andy Heffernan This is Unix ( )- ahh@moji.uucp (uunet!glyph!moji!ahh) This is your brain on Unix (o)- Any questions?