uucp cleanup script

Andy Heffernan ahh at moji.uucp
Tue Jun 4 09:04:40 AEST 1991


In article <104374 at becker.UUCP> bdb at 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 at moji.uucp (uunet!glyph!moji!ahh)
This is your brain on Unix (o)-
Any questions?



More information about the Comp.unix.amiga mailing list