From owner-freebsd-questions@FreeBSD.ORG Sun May 31 19:43:18 2009 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 C0A83106566B for ; Sun, 31 May 2009 19:43:18 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from mail-fx0-f163.google.com (mail-fx0-f163.google.com [209.85.220.163]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6A18FC15 for ; Sun, 31 May 2009 19:43:17 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by fxm7 with SMTP id 7so717357fxm.43 for ; Sun, 31 May 2009 12:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=1mMOZpe1Uy7urdSwL85E1DH8z52Hb6AGOWKcPndNaIU=; b=K/n7m7ueFtRIhx4hMXa1OO/PfN8nQ8jEziZHcYYRzyUy9x9fe4PQVnyYj5dbIuB6E4 ZvYzml3Z5E5B+9+2uUde1lQ/mF8WaH5+CuB5m2YwxHbPKodZNsQAnLDqNj0fQd+fjZXR jlBqftDDxJVezlaDgEST/LiXcfmEGxpA6YvFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=vVXb9flpa/6QRJzuKHhobrbtZX2G+Ab9m5ReY2mAGkAefh5kmvh2uYLMwWE5HX6dv5 OQanCddmQpvD+6v8Py3Utl1lS553IDDrWS/u1FDg3Vm7Us4n2JOMUbpETgzJADGt9tyN qllpAd4pnQGzAJLy8MewA9XdOh2gw52HTOKS0= MIME-Version: 1.0 Received: by 10.204.52.5 with SMTP id f5mr4855114bkg.203.1243798997207; Sun, 31 May 2009 12:43:17 -0700 (PDT) In-Reply-To: References: <26face530905311117te38a4faya92733fbfebd9597@mail.gmail.com> From: Chris Rees Date: Sun, 31 May 2009 20:42:57 +0100 Message-ID: To: Wojciech Puchar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Kelly Jones , freebsd-questions@freebsd.org Subject: Re: Waiting for a process to die X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2009 19:43:19 -0000 2009/5/31 Wojciech Puchar : > >> How do I wait for a specific process to die? I want to do something like: >> >> waitpid 1234&&(echo "done!" | Mail -s "PROC DONE" >> kelly.terry.jones@gmail.com) > > if i understand you correctly: > > your_program parameters & > bg_process_number=$! > > ...something else... > > wait $bg_process_number > echo "done!" > > Er, yeah, actually a much better idea than mine. Ignore my previous suggestion :) Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list?