Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jan 2001 17:41:58 -0500
From:      trini0 <trini0@optonline.net>
To:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: Killing process
Message-ID:  <3A54FC36.91943EE1@optonline.net>
References:  <XFMail.010104133924.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, guys.

John Baldwin wrote:

> On 04-Jan-01 trini0 wrote:
> > I cant find out where, but Im trying to kill a process by kill -9
> > /var/run/*.pid, it keeps saying illegal process.  I checked the archives
> > but found nothing.  What is the correct syntax to define a process by
> > /var/run/*.pid.
> > Thanks
>
> kill `cat /var/run/foo.pid`
>
> kill takes the pid as its argument.  /var/run/foo.pid is a file that contains
> the pid of the process.
>
> --
>
> John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
> PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A54FC36.91943EE1>