<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=378032720-04062003><FONT face=Arial color=#0000ff size=2>You 
could use the "there is a folder" construct to determine if the package exists 
without using shell():</FONT></SPAN></DIV>
<DIV><SPAN class=378032720-04062003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=378032720-04062003><FONT face=Arial color=#0000ff size=2>  
if there is a folder "/Library/Receipts/BSD.pkg" then answer "BSD 
Exists!"</FONT></SPAN></DIV>
<DIV><SPAN class=378032720-04062003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=378032720-04062003><!-- Converted from text/plain format -->
<P><FONT size=2>Ken Ray<BR>Sons of Thunder Software<BR>Email: 
kray@sonsothunder.com<BR>Web Site: <A 
href="http://www.sonsothunder.com/">http://www.sonsothunder.com/</A> 
</FONT></P></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  use-revolution-admin@lists.runrev.com 
  [mailto:use-revolution-admin@lists.runrev.com] <B>On Behalf Of 
  </B>RGould8@aol.com<BR><B>Sent:</B> Wednesday, June 04, 2003 2:56 
  PM<BR><B>To:</B> use-revolution@lists.runrev.com<BR><B>Subject:</B> Re: Detect 
  BSD Libraries installed in OSX?<BR><BR></FONT></DIV><FONT 
  face=arial,helvetica><FONT face=Geneva color=#000000 size=2 
  FAMILY="SANSSERIF">I'm afraid I'm not getting this at all (which could be due 
  to the fact that I don't know unix).  I've tried the<BR><BR># which 
  which<BR><BR>and the <BR><BR>/usr/bin/which<BR><BR>calls, and all I get is 
  command not found errors.  Can you tell me more about what the unix 
  command would be to determine if the BSD.pkg file exists?<BR><BR>In a message 
  dated 6/4/03 12:01:55 AM, alrice@ARCplanning.com writes:<BR><BR><BR>
  <BLOCKQUOTE 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px" 
  cite="" TYPE="CITE"></FONT><FONT face=Geneva color=#000000 size=2 
    FAMILY="SANSSERIF">I haven't tested this, but guessing you could check for 
    the existence<BR>of /Library/Receipts/BSD.pkg<BR><BR>However, it would be 
    more robust to check for existence command before<BR>you use shell(). The 
    user could have modified the contents of<BR>/usr/bin/. This might be 
    especially common among users of Fink who<BR>install bunches of stuff into 
    /sw/bin. Maybe they leave /usr/bin alone<BR>and just change their path, or 
    maybe they delete stuff? To be really<BR>robust, use which to locate the 
    command in question:<BR><BR># which which<BR>/usr/bin/which<BR><BR>Unix is 
    so weird! :-)<BR></BLOCKQUOTE></FONT><FONT face=Geneva color=#000000 size=2 
  FAMILY="SANSSERIF"><BR><BR></BLOCKQUOTE></FONT><FONT face=Geneva color=#000000 
size=2 FAMILY="SANSSERIF"></FONT></FONT></BODY></HTML>