site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com What does UNIX have to do with Mac OS X (No, really?) uname -m (or uname(3)) will return either "x86_64" or "i386" depending on OS version, kernel type, etc., and may even return "Power Macintosh" if run on an Intel system but under Rosetta. What are you really trying to do? Shantonu Sen ssen@apple.com On Aug 5, 2010, at 2:39 PM, François Revol wrote:
Le 5 août 2010 à 23:28, Duane Murphy a écrit :
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
We have a script that needs to detect if the OS is running on Intel hardware.
What is the safe way of doing this?
The proper way on UNIX is usually: uname -m
François. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/ssen%40apple.com
This email sent to ssen@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Shantonu Sen