Daniel Peter Cavanagh wrote:
> 
> I'd like to write a script that will run a command, 
> and if successful run another command otherwise echo 
> a message.

How about this:
------------------------------------
fetchmail -su nofsk pop.vtown.com.au
case $? in 0) pine;;
           *) echo failed fetch;;
esac
------------------------------------ 

Cheers,
Steven


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to