On Thu, Nov 21, 2002 at 10:41:13AM +0100, Roman Neuhauser wrote:
>     MSG=$(sudo mount ... 2>&1)
>     if [ $? -ne 0 -a $MSG == "Device not configured" ]; then
>         echo "My custom error message"
>     fi

Thanks. The one thing I never thought to try was putting '2>&1' 
*inside* the parentheses. It makes sense, now that I know about it.

Bob Hall

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to