Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Sep 2008 10:31:47 +0300
From:      "Yury Michurin" <yury.michurin@gmail.com>
To:        "Richard Yang" <kusanagiyang@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: problem killing a process with its pid
Message-ID:  <692c9a9f0809140031p6fb52f25ycd0c1e5897f5d63@mail.gmail.com>
In-Reply-To: <abd417bf0809140028jeba7c76k2c836679987045d@mail.gmail.com>
References:  <abd417bf0809132333g13670fey7e0cfc016157c029@mail.gmail.com> <692c9a9f0809140026t60c7a5e8t82cf2b03044b0d99@mail.gmail.com> <abd417bf0809140028jeba7c76k2c836679987045d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
yury@sigma:~> top &
[1] 72002
yury@sigma:~> echo 72002 > test
[1]  + Suspended (tty output)        top
yury@sigma:~> kill -9 `cat ./test`
[1]    Killed                        top

try tcsh =)

On Sun, Sep 14, 2008 at 10:28 AM, Richard Yang <kusanagiyang@gmail.com>wrote:

> i just found i am on csh
> thanks a lot anyway :)
>
> 2008/9/14 Yury Michurin <yury.michurin@gmail.com>
>
> Try:
>> kill -9 `cat /var/run/natd.pid`
>>
>> (works for me on tcsh)
>>
>> On Sun, Sep 14, 2008 at 9:33 AM, Richard Yang <kusanagiyang@gmail.com>wrote:
>>
>>> I have been trying to kill the process by pulling natd.pid
>>> below are 3 typical examples among a couple dozens I tried
>>>
>>> kill -9 $(natd.pid)
>>> Illegal variable name
>>>
>>> kill -9 '/var/run/natd.pid'
>>> kill: Arguments should be jobs or process id's
>>>
>>> cat /var/run/natd.pid | kill -9
>>> (no error returned, but natd process is still up)
>>>
>>>
>>> could someone help?
>>> thanks.
>>>
>>>
>>> --
>>>
>>> Best Regards
>>>
>>> Richard Yang
>>> richardyang@richardyang.net
>>> kusanagiyang@gmail.com
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "
>>> freebsd-questions-unsubscribe@freebsd.org"
>>>
>>
>>
>
>
> --
>
> Best Regards
>
> Richard Yang
> richardyang@richardyang.net
> kusanagiyang@gmail.com
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692c9a9f0809140031p6fb52f25ycd0c1e5897f5d63>