problem killing a process with its pid

Sahil Tandon sahil at
Sun Sep 14 07:47:41 UTC 2008

Richard Yang <kusanagiyang at> wrote:

> I have been trying to kill the process by pulling

Is the rc script, which can be used to stop natd, not working?

> below are 3 typical examples among a couple dozens I tried
> kill -9 $(
> Illegal variable name
> kill -9 '/var/run/'
> kill: Arguments should be jobs or process id's
> cat /var/run/ | kill -9
> (no error returned, but natd process is still up)

In bash, you could:

# kill -9 $(cat /var/run/

Sahil Tandon <sahil at>

More information about the freebsd-questions mailing list