Re: Test for BSD subsystem
Re: Test for BSD subsystem
- Subject: Re: Test for BSD subsystem
- From: Giuliano Gavazzi <email@hidden>
- Date: Sun, 12 Jan 2003 13:30:40 +0000
At 11:48 +0100 2003/01/12, Harald E Brandt wrote:
+--> bill wrote 03-01-12:
> I am interested to see a list of all the things installed by the BSD
subsystem, since I am uncertain as to which things I use that
actually require the BSD subsystem to be installed or not. Suggestion?
Try this one line code:
do shell script "lsbom /Library/Receipts/BSD.pkg/Contents/Archive.bom"
Which lists the contents of the file Archive.bom in BSD.pkg
+-
Good suggestion! lsbom is a really useful command! But can I trust
that the commands listed there are *NOT* installed by other Mac OS X
components?
it all depends on what you want to do... if you really want to check
for the availability of a command, why not just do a
which command_name
for instance
me% which foo
foo: Command not found.
while
me% which perl
/usr/bin/perl
after all the presence of a binary is not a guarantee that the binary
will be in the path.
Giuliano
--
H U M P H
|| |||
software
Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.