problem killing a process with its pid
Richard Yang
kusanagiyang at gmail.com
Sun Sep 14 07:28:21 UTC 2008
i just found i am on csh
thanks a lot anyway :)
2008/9/14 Yury Michurin <yury.michurin at 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 at 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 at richardyang.net
>> kusanagiyang at gmail.com
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscribe at freebsd.org"
>>
>
>
--
Best Regards
Richard Yang
richardyang at richardyang.net
kusanagiyang at gmail.com
More information about the freebsd-questions
mailing list