#!/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;
--
John.
In reply to Re: Getting process IDs
by jmcnamara
in thread Getting process IDs
by Vasudevacharyulu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |