From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 06:33:29 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B97081065674 for ; Sun, 14 Sep 2008 06:33:29 +0000 (UTC) (envelope-from kusanagiyang@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 83F638FC0C for ; Sun, 14 Sep 2008 06:33:29 +0000 (UTC) (envelope-from kusanagiyang@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1145134pyb.10 for ; Sat, 13 Sep 2008 23:33:28 -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:mime-version:content-type; bh=Mn6xeh9OsbfY+cbqwgB0CHh7kxdXQ+fRkh0Cb7tC5V4=; b=P0V4Wx3gVIErb8Jl63mDVf+hOBC7oXltBdocJdbYA8tNBPLfaPp2MP/nvMJeQp6SZw 0KmwzRPu/wRXdu+6mCoq2I2//WRjwIewabyVylGYPiG26ZIBMUh1drUmvWmibrvOuRMY cQZ1MsZwLC0yDZnMiT2qe/cUIO8rHqm77DYpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=BFA4c5HzChl1xw1o33GRagalqRFH0milLOKcmucnpDqpuFqCx7wKqUfFuKO66cBS55 7wmbZenl/ABHHh0rlGaInWjJzcgI8TLuMRPZ/fECRHInNMxyapw40ZMkn8vdbGkbRMZ3 UeyQYNeS/yQnoVYU8qAHZJx1zvw2QF9giYrEE= Received: by 10.64.220.20 with SMTP id s20mr11512580qbg.32.1221374007960; Sat, 13 Sep 2008 23:33:27 -0700 (PDT) Received: by 10.65.147.15 with HTTP; Sat, 13 Sep 2008 23:33:28 -0700 (PDT) Message-ID: Date: Sat, 13 Sep 2008 23:33:28 -0700 From: "Richard Yang" To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: 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 06:33:29 -0000 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