From owner-freebsd-questions Wed Jan 20 13:46:48 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23449 for freebsd-questions-outgoing; Wed, 20 Jan 1999 13:46:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23444 for ; Wed, 20 Jan 1999 13:46:43 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id PAA98109; Wed, 20 Jan 1999 15:46:31 -0600 (CST) Date: Wed, 20 Jan 1999 15:46:31 -0600 From: Dan Nelson To: Mikhail Teterin Cc: questions@FreeBSD.ORG Subject: Re: wait(1) utility -- where is it? Message-ID: <19990120154631.A97871@dan.emsphone.com> References: <199901201829.NAA07360@xxx.video-collage.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <199901201829.NAA07360@xxx.video-collage.com>; from "Mikhail Teterin" on Wed Jan 20 13:29:08 GMT 1999 X-OS: FreeBSD 3.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 20), Mikhail Teterin said: > There is a man-page for wait(1), which talks about "wait utility". > Such a utility, however, is nowhere to be found :( The tcsh's "wait" > is a built-in command that accepts no arguments and sh's "wait" > accepts an optional _job_ id, but not the pid, the man page talks > about. Have you actually tested sh's wait command? It seems to wait on PIDs just fine for me: $ sleep 20 & jobs [1] 98000 sleep 20 $ date ; wait 98000 ; date Wed Jan 20 15:41:59 CST 1999 Wed Jan 20 15:42:14 CST 1999 [1] 98000 Exit 0 sleep 20 $ took me 5 seconds to type the 'wait' comandline. There cannot be a /usr/bin/wait, since the wait() syscall only lets a process wait on its children. It has to be a shell builtin. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message