If you can, please try this script out, using the latest Mac::Carbon (0.77). Especially on Intel.
#!/usr/bin/perl -w
use Mac::Processes;
while ( ($psn, $psi) = each(%Process) ) {
print $psi->processName, ' ' if $psi;
print "$psn\n";
}
Let me know what platform you are using, and if the script terminates (as opposed to it just printing the same $psn forever (have your ctrl-C ready!)).
Fine for me (Score:2)
Need more than 1? (Score:1)
Re: (Score:2)
What happens... (Score:1)
What happens if you use keys() instead?
Re: (Score:2)
Works fine for me... (Score:1)
Darwin Excelsior.local 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386