<quote who="getadog">

> Are you meaning to test the string length of $? ?

No, thanks. This was also pointed out by someone else a while ago (not to
the list, and I'm not sure why, but because it wasn't I haven't said
anything about them here, apart from the fact that it was an excellently
helpful email and thanks).

Ahem. So now I'm doing this: 

  if [ ! "$?" = "0" ]; then

Which works great! So, second question. I need to use what's going on in
stdin twice in a script, so I'm currently doing this:

  STDIN=$(tee -a pantslog)
  ...
  echo $STDIN | mail [EMAIL PROTECTED]

Should I be worried, and if so, is there a better way?

- Jeff

-- 
   "Can we have a special TELSABUG category, and everything gets dropped    
                     to fix them first?" - Telsa Gwynne                     

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to