On Thu, Apr 10, 2003 at 12:44:19PM -0600, Benjamin Tomhave wrote:
Ok, so I now have the following code snippit in place, RETURNCODE is getting
the desired value (notice I'm including it with the echo line), but the
expression isn't working correctly? I've tried this with various sets of ""
around the var or the value, but to no avail. Any ideas or suggestions re:
why the expression isn't evaluating as expected?
DUMMY=`test -d $VHOME/Maildir`
if ($RETURNCODE!=0)
{
echo "Sorry, no mailbox here by that name. (#5.1.1) ($RETURNCODE)"
EXITCODE=100
exit
}
So, What are you trying to do here? To me it looks like you are
checking for the existance of a maildir belonging to a user and if it
does not exist, print an error message and exit with exitcode 100.
In short - Are you trying to emulate an EX_NOUSER? If so you should use
an exitcode of 67. Maybe you were going for EX_UNAVAILABLE? If so,
that would be 69. How about EX_CANTCREAT? 73.
I can't seem to find a valid exitcode in sysexits.h for 100.
So, what does work? Have you tried a command line delivery? Does the
echo line work? What does it output?