<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">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 CITE STYLE="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px" TYPE="CITE"></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">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 COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>