It's echo $? to use to get the return value of the last application run not $_. I have to load the calculator with coffee. Jude <jdashiel at shellworld.net> "I love the Pope, I love seeing him in his Pope-Mobile, his three feet of bullet proof plexi-glass. That's faith in action folks! You know he's got God on his side." ~ Bill Hicks