Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Need windows system info

by FitTrend (Pilgrim)
on Mar 10, 2005 at 17:29 UTC ( #438350=note: print w/replies, xml ) Need Help??


in reply to Need windows system info

Using WMI will probably be your best approach. However, some information is not available or off by default.

cpan certainly will have lots of modules for you.

I've used IO::Socket and Sys::Hostname for Ip address, WMI for model, os info, etc. For network stats, netstat's output could be parsed for statistics.

For WMI, I've used Win32::OLE and Win32::OLE:Enum.

Hope this helps

I have posted some sample code in This node

.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://438350]
help
Chatterbox?
[r@j]: I am new to perl script, seeking your advice for the following requirement in perl script - Need to retrieve the status of running process with the process name without using ps -ef command.
[marto]: As discussed yesterday SoPW
[Discipulus]: r@i see perlvar in the docs: $$ is the PID of the current running process. I suppose the name will be perl anyway

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-10-24 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (286 votes). Check out past polls.

    Notices?