From owner-freebsd-questions Thu Feb 15 17:51:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id 9EE7937B67D for ; Thu, 15 Feb 2001 17:51:37 -0800 (PST) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id MAA72788; Fri, 16 Feb 2001 12:51:35 +1100 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id MAA27732; Fri, 16 Feb 2001 12:51:35 +1100 (EST) Message-Id: <200102160151.MAA27732@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Christopher W. Aiken" Cc: FreeBSD Questions Subject: Re: Shell Question In-Reply-To: Your message of "Thu, 15 Feb 2001 20:48:24 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 16 Feb 2001 12:51:34 +1100 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG $! should be the PID of the most recently executed background process. So your example would become: my_script & PID=$! Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message