Solaris is psrinfo.
Patrick J Connolly
Managed Security Specialist
XO Communications (Concentric Network)
Work: (314) 506-3479
Cell: (314) 486-8406
Pager: (800) 652-1203
-----Original Message-----
From: Rogers, Gary (AP- Server Adminstrator)
[mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 12:13 PM
To: 'Daryl J. Hoyt'; Beginners Perl
Subject: RE: Number of processors on a *nix system
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]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]