From owner-freebsd-questions Thu Feb 15 17:46:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from speedbuggy.telerama.com (speedbuggy.telerama.com [205.201.1.216]) by hub.freebsd.org (Postfix) with SMTP id C7CEB37B4EC for ; Thu, 15 Feb 2001 17:46:16 -0800 (PST) Received: (qmail 22137 invoked from network); 16 Feb 2001 01:45:56 -0000 Received: from d7-10.dyn.telerama.com (HELO bigdaddy.localdomain) (205.201.40.10) by speedbuggy.telerama.com with SMTP; 16 Feb 2001 01:45:56 -0000 Received: from localhost (cwaiken@localhost) by bigdaddy.localdomain (8.11.1/8.11.1) with ESMTP id f1G1mOA00572 for ; Thu, 15 Feb 2001 20:48:28 -0500 (EST) (envelope-from cwaiken@telerama.com) X-Authentication-Warning: bigdaddy.localdomain: cwaiken owned process doing -bs Date: Thu, 15 Feb 2001 20:48:24 -0500 (EST) From: "Christopher W. Aiken" X-X-Sender: To: FreeBSD Questions Subject: Shell Question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG /usr/local/etc/rc.d to fire up at boot time. How do I get the pid of the job I'm placing in the bg? The script is: mystuff {start|stop} In mystuff I bg a job by: my_script & How do I get the PID of my_script so that I can use it to kill the job when I: mystuff stop I'm looking for something like: PID=my_script & -- Christopher W. Aiken, Scenery Hill, Pa, USA chris at cwaiken dot com, www.cwaiken.com Debian GNU/Linux 2.2_r2 & FreeBSD 4.2 RELEASE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message