Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: RE: RE: Getting a Local/Remote Win32 Task List

by RayRay459 (Pilgrim)
on Aug 07, 2001 at 01:28 UTC ( [id://102626]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Getting a Local/Remote Win32 Task List
in thread Getting a Local/Remote Win32 Task List

gaggio, i tried using your little tidbit and it is awesome. you rock! Being a beginner in perl, i was wondering if you know how to format the info displayed from the remote tlist? Thanks in advance. Ray
  • Comment on Re: RE: RE: Getting a Local/Remote Win32 Task List

Replies are listed 'Best First'.
Re: Re: RE: RE: Getting a Local/Remote Win32 Task List
by cab (Beadle) on Mar 28, 2002 at 09:51 UTC
    use strict; use Win32::PerfLib; my $h='hostname'; my %tasks=get_remote_process_list($h); foreach my $key(keys %tasks){ print "$key\t$tasks{$key}\n"; }
    /cab
      Hello I keep getting this error: Unrecognized character \xAD at test.pl line 5. when ever I try to use win32 process libs any one knows a fix?
        remove that character (don't embed unicode in sourcecode when you don't know how it works)
      I get a complaint that it cannot find the get_remote_.al in @INC (it had no problem with Use Win32::PerfLib) I actualy looked at PerfLib.pm and do not see any such function there BTW, I am using Win 2000, does PerfLib work there too or jusr in NT?
Re: Re: RE: RE: Getting a Local/Remote Win32 Task List
by gaggio (Friar) on Aug 10, 2001 at 02:46 UTC
    Well, you can simply use the printf function!
    It is just like in C++.
    Go to PerlDoc.com or simply type "printf" in the search box at the top of the page!
    Printf should be used only if you really need to. Most of the formatting can be done with the print() function.
      or actually type printf in the search box at the top of this page...

      Greetz
      Beatnik
      ... Quidquid perl dictum sit, altum viditur.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://102626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-20 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found