in reply to Getting process IDs
#!/usr/bin/perl -w use strict; my $user = 'root'; my @procs = `ps -U $user`; shift @procs; # Omit title line my @pids = map { (split)[0] } @procs; [download]
-- John.