I left out part of my inquiry in the last post to the list..sorry. :-)

When I do something like this:

macro index <F2> "!echo 'Checking mail..';~/bin/getmail\n" "Check for new mail"
macro pager <F2> "!echo 'Checking mail..';~/bin/getmail\n" "Check for new mail"

where getmail's contents are:

#!/bin/sh

if [ -f /var/lock/LCK..ttyS1 ]; then
        if [ ! -f ~/.fetchmail.pid ]; then
                fetchmail -s
        fi
fi

.. I get the expected output, "Checking mail..," but when it's done I
get the "Press any key to continue..." -- which I get for any shell
commands I run.

Is there any way to only do that if there is an error?

-- 
 -Brian Clark

Reply via email to