Posted on 2007-07-24 13:04:00-07 by alasdair
I only see a small list of processes
This is the code, which prints out 3. I expected to see same as ps -A | wc - l which is 152.
my $t = Proc::ProcessTable->new(); print "Num = " . scalar @{$t->table}, "\n";
Running perl 5.8.4 on SunOS. I might have to parse ps after all .. sigh ..
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.