in reply to RE: working with pid's
in thread working with pid's

oopps..that was wrong code :) This is correct.
Update!!: I just now saw that you also needed the names so, here's an edit.
#!/usr/bin/perl -w use strict; my(%list); open(PH, "ps aux|"); while (<PH>) { if (/q3ded/) { /\b(\d+)\b.*:(.{3})(.*)/; $list{$1} = $3; } } close(PH); foreach (keys %list) { print $_, " ", $list{$_}, "\n"; }