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.