if test $ERRORNUM -ge 1; then
which i think does the same thing.
You know, I think I found the answer digging on google groups.
I think my variable has a newline character at the end - I just need to strip it using sed I spose.
problem probably solved (after I figure out sed)
thanks
dave -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html