Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > Re: Detecting O...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 16 Topic 999 of 1076
Post > Topic >>

Re: Detecting OS X version from perl

by lprall@[EMAIL PROTECTED] (Larry Prall) Nov 17, 2007 at 09:36 PM

--Apple-Mail-3-150353647
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Try 'system_profiler'.  Running it as 'system_profiler -detaillevel  
full' will probably provide more information than you really need. Run  
it with an unrecognized option (e.g. '-help') for more info.


On Nov 17, 2007, at 7:37 PM, Michael Barto wrote:

>
> Just a quick question. Is there a command line at a terminal window  
> of MacOSX that can do this- tell you more about the hardware? Also  
> list software packages and their revisions and also patches?
>
> Peter Hartmann wrote:
>>
>> On my 800Mhz Dual Processor PPC the AS command
>>
>> system info
>>
>> returns the correct version (10.4.11).
>>
>> Am 17.11.2007 um 12:21 schrieb Eberhard Lisse:
>>
>>> Very Cool,
>>>
>>> on my iMini
>>>
>>> Gestalt says it's 10.4.9
>>> osascript/fider says 10.4.7
>>
>> I guess this is the version for the application "Finder", not the OS!
>>
>>> sw_version 10.4.11
>>>
>>> the latter is correct :-)-O
>>
>>
>> This AS
>>
>> tell application "Finder"
>>     set FinderVersion to version
>>     set OSVersion to product version
>>     return {FinderVersion, OSVersion}
>> end tell
>>
>> returns
>>
>> {"10.4.7", ""}
>>
>> So getting the OS version via the Finder seems to be broken - but  
>> there is an alternative, as shown above.
>>
>> Gestalt seems to be broken, however.
>>
>> ___ Peter Hartmann ________
>>
>> mailto:hphartmann@[EMAIL PROTECTED]
>>
>>
>
> -- 
> Michael Barto
> Software Architect
>
> <circle.gif>
> LogiQwest Inc.
> 16458 Bolsa Chica Street, # 15
> Huntington Beach, CA  92649
> http://www.logiqwest.com/
>
>    	mbarto@[EMAIL PROTECTED]
> Tel:  714 377 3705
> Fax: 714 840 3937
> Cell: 714 883 1949
>
> 'tis a gift to be simple
> This e-mail may contain LogiQwest proprietary information and should  
> be treated as confidential.


--Apple-Mail-3-150353647--
 




 16 Posts in Topic:
Detecting OS X version from perl
david@[EMAIL PROTECTED]   2007-10-14 17:29:25 
Re: Detecting OS X version from perl
emoy@[EMAIL PROTECTED] (  2007-10-14 10:45:30 
Re: Detecting OS X version from perl
david@[EMAIL PROTECTED]   2007-10-14 23:56:52 
Re: Detecting OS X version from perl
cdevers@[EMAIL PROTECTED]  2007-10-14 21:37:11 
Re: Detecting OS X version from perl
JD@[EMAIL PROTECTED] (Jo  2007-10-14 19:25:12 
Re: Detecting OS X version from perl
pudge@[EMAIL PROTECTED]   2007-10-15 17:52:04 
Re: Detecting OS X version from perl
nospam@[EMAIL PROTECTED]   2007-11-17 13:21:45 
Re: Detecting OS X version from perl
mbarto@[EMAIL PROTECTED]   2007-11-17 16:37:06 
Re: Detecting OS X version from perl
lprall@[EMAIL PROTECTED]   2007-11-17 21:36:41 
Re: Detecting OS X version from perl
cdevers@[EMAIL PROTECTED]  2007-11-17 21:46:17 
Re: Detecting OS X version from perl
kurtzlepirate@[EMAIL PROT  2007-11-18 10:49:22 
Re: Detecting OS X version from perl
mbarto@[EMAIL PROTECTED]   2007-11-18 17:40:51 
Re: Detecting OS X version from perl
brian.d.foy@[EMAIL PROTEC  2007-11-19 20:22:32 
Re: Detecting OS X version from perl
peter@[EMAIL PROTECTED]   2007-11-18 17:02:02 
Re: Detecting OS X version from perl
brian.d.foy@[EMAIL PROTEC  2007-11-18 21:22:04 
Re: Detecting OS X version from perl
cdevers@[EMAIL PROTECTED]  2007-11-20 22:21:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 0:18:48 CST 2008.