On Thu, Aug 26, 2004 at 03:30:22PM -0400, [EMAIL PROTECTED] wrote: > if [ -f /usr/bin/tpconfig ]; then > /usr/bin/tpconfig --tapmode=0 > if [ $? ]; then ^^^^^^^^^^^^^^^ That doesn't do what you think it does. In Bash, the [ $? ] bit says "if the variable requested is not empty, then......". You need to test for it regardless, so something like:
[ "$?" = 0 ] && echo "worked" || echo "Failed" Although how this is meant to fix your initial problem is unclear. -- Thomas Adam -- Quis custodiet ipsos custodes? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]