To add to Bob's statement, just to provide more info...
I would get some ps output, maybe like this:
my @psfull = `ps -ef`;
Then I could mess around with @psfull all want:
if (@psfull =~ /(^\d+)\s+\d+dhcpd/) {
$pid = $1;
do some stuff to $pid...
Read the regular expression sec
> -Original Message-
> From: Jorge Goncalvez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 4:34 AM
> To: [EMAIL PROTECTED]
> Subject: RE:Kill a process
>
>
> Hi, I wonder how can I know if a process for exemple dhcpd is
> running and if it
> is how can I kill it in Perl.