From owner-freebsd-questions Sun Aug 30 19:35:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA08467 for freebsd-questions-outgoing; Sun, 30 Aug 1998 19:35:08 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mutsgo.kf7nn.com (mutsgo.kf7nn.com [204.251.27.213]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA08462 for ; Sun, 30 Aug 1998 19:35:05 -0700 (PDT) (envelope-from vagner@mutsgo.kf7nn.com) Received: (from vagner@localhost) by mutsgo.kf7nn.com (8.8.8/8.8.8) id VAA04752 for questions@freebsd.org; Sun, 30 Aug 1998 21:33:53 -0500 (CDT) (envelope-from vagner) From: Laszlo Vagner Message-Id: <199808310233.VAA04752@mutsgo.kf7nn.com> Subject: wait for last command To: questions@FreeBSD.ORG Date: Sun, 30 Aug 1998 21:33:52 -0500 (CDT) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG when writing a shell script that has say a few lines of executables to run does it spawn multiple processes at the same time to run them or does it run them one after the other. here is an example grep data foofile > blahfile mail someone < blahfile grep -v somedata file2 > blahfile mail else < blahfile in this example if lines are executed at the same time things would get messed up. so are they run sequentially and do they wait to complete before executing the next line ?? i have seen people put && after an executable what is it for? i know the & means to run as a process or something like that and to detach it from the current shell. George To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message