• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Test for BSD subsystem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Test for BSD subsystem
      • From: John W Baxter <email@hidden>
References: 
 >Re: Test for BSD subsystem (From: bill <email@hidden>)
 >Re: Test for BSD subsystem (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Re: text appears, but styling is gone
  • Next by Date: Creating Text Notes From Safari Script
  • Previous by thread: Re: Test for BSD subsystem
  • Next by thread: Re: Test for BSD subsystem
  • Index(es):
    • Date
    • Thread