It's going to vary by *NIX. IRIX has the hinv command that reports hardware
info. You can probably check somewhere in /proc for Linux. AIX you can
probably do an ODMGET to find out, but you'd have to know what to look for.
I'm not sure on HP/UX or Soalris, though I'm sure Solaris has a hardware
inventory command as well.

g:wq

-----Original Message-----
From: Daryl J. Hoyt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 11:15 AM
To: Beginners Perl
Subject: Number of processors on a *nix system


Hi,
        I am looking for a way for Perl to determine how many processors are
on a
system.  I know in Windows, I can use the NUMBER_OF_PROCESSORS environment
variable, but *nix doesn't have this.  Any Ideas???

Thanks,


Daryl J. Hoyt
Performance Engineer
Geodesic Systems
http://www.geodesic.com
[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to