Date: Sun, 30 Aug 1998 21:33:52 -0500 (CDT) From: Laszlo Vagner <vagner@kf7nn.com> To: questions@FreeBSD.ORG Subject: wait for last command Message-ID: <199808310233.VAA04752@mutsgo.kf7nn.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808310233.VAA04752>