From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 07:31:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7940F106566B for ; Sun, 14 Sep 2008 07:31:48 +0000 (UTC) (envelope-from yury.michurin@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 567C58FC18 for ; Sun, 14 Sep 2008 07:31:48 +0000 (UTC) (envelope-from yury.michurin@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so1018430wah.3 for ; Sun, 14 Sep 2008 00:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=73YSptqFbHoIYQ4bm1Cv+fLHA+NOgsvRNb9zHfNIccU=; b=BD6JueDqT66zft9jdKuf73XM0a1vKxRkSY8Iq6a+IwLer5NLSkSmWoQFkmkLZut1fx Ti4gbki/p4+/LekkuuUe/3AKXo7VCXVHa06a65G3H0L5jxXRUf17U41eW9/AK1EAvKVI okdSEj31j/3VOtgLRxAI/17gupVc9IuUMPR6s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=kmdWMeikjZiAwYnE5AAwjuSPQWawVYeLsLWmIJPv8z4fo5oRJy5b96+XDJ7t8KsZZV JYcN1R4zZBlP4Sp2P0S3RzQoEh++HsyqJN/ho9qeJh60fHHn79NE5NjrP4Ot0Zt2Zy9G TpclcSxfTJPrU3klBiJcnoIJ3r9WOAELmkSIw= Received: by 10.114.193.1 with SMTP id q1mr4955853waf.70.1221377507769; Sun, 14 Sep 2008 00:31:47 -0700 (PDT) Received: by 10.114.174.9 with HTTP; Sun, 14 Sep 2008 00:31:47 -0700 (PDT) Message-ID: <692c9a9f0809140031p6fb52f25ycd0c1e5897f5d63@mail.gmail.com> Date: Sun, 14 Sep 2008 10:31:47 +0300 From: "Yury Michurin" To: "Richard Yang" , freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 References: <692c9a9f0809140026t60c7a5e8t82cf2b03044b0d99@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: problem killing a process with its pid X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 07:31:48 -0000 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 wrote: > i just found i am on csh > thanks a lot anyway :) > > 2008/9/14 Yury Michurin > > Try: >> kill -9 `cat /var/run/natd.pid` >> >> (works for me on tcsh) >> >> On Sun, Sep 14, 2008 at 9:33 AM, Richard Yang 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 >