Find CPU Usage with Perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • isha123
    New Member
    • Jun 2007
    • 5

    Find CPU Usage with Perl

    how can i find the cpu usage of my windows XP SP2 machine from command line? And also how can i execute this command with Perl? or is there anyother way to find CPU usage for XP machine using Perl?
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    I think you want to check into the Win32 class of modules if you want to do this with perl. I don't know which Win32 module you should use though. You will have to search through them and find one that does what you want. Or maybe someone will have another suggestion.

    Comment

    • miller
      Recognized Expert Top Contributor
      • Oct 2006
      • 1086

      #3
      cpan Win32::Process: :Info
      cpan Unix::Processor s

      - Miller

      Comment

      • isha123
        New Member
        • Jun 2007
        • 5

        #4
        Hi Miller,

        Win32::Process: :Info will only give me CPu usage of particular process only. How can i get the total CPU usage in percentage(%)? and can i use it to find the total CPU usage of the remote machine too?

        Comment

        • miller
          Recognized Expert Top Contributor
          • Oct 2006
          • 1086

          #5
          Don't know.

          Follow the cross-forum post that you created at perlmonks

          - M

          Comment

          Working...