From oracle-l-bounce@freelists.org Thu Aug 4 07:44:42 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j74Cigax007732 for ; Thu, 4 Aug 2005 07:44:42 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j74CiWIP007706 for ; Thu, 4 Aug 2005 07:44:32 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 25B281DC9E5; Thu, 4 Aug 2005 07:44:21 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15375-05; Thu, 4 Aug 2005 07:44:21 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 95C5D1DC9D0; Thu, 4 Aug 2005 07:44:20 -0500 (EST) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C598F1.F89BE6F7" Subject: RE: shell scripting help Date: Thu, 4 Aug 2005 07:42:27 -0500 Message-ID: <270A0BDDFDE54E41B78F0F06D82A66B801346CA1@okcexg3.kmg.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: shell scripting help Priority: normal Thread-Index: AcWYdV01VDZEJVSDSQKfSDv83z1NUgAfElwQ From: "Smith, Ron L." To: , X-OriginalArrivalTime: 04 Aug 2005 12:42:28.0202 (UTC) FILETIME=[F90064A0:01C598F1] X-archive-position: 23359 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: rlsmith@kmg.com Precedence: normal Reply-To: rlsmith@kmg.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-mailscan-MailScanner-Information: Please contact the ISP for more information X-mailscan-MailScanner: Found to be clean X-MailScanner-From: oracle-l-bounce@freelists.org X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00, HTML_FONTCOLOR_BLUE,HTML_MESSAGE autolearn=no version=2.63 ------_=_NextPart_001_01C598F1.F89BE6F7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Don't run them in the background (&). The second and third statements won't run until the previous SQL finishes. =20 Ron -----Original Message----- From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] On Behalf Of d cheng Sent: Wednesday, August 03, 2005 4:49 PM To: Oracle-L@freelists.org Subject: shell scripting help =09 =09 Hi Listers, =20 I have a korn shell script which needs to run 3 sqlplus scripts in parallel then run the final sqlplus script. Is there a way to ensure that sqlplus scripts 1 thru 3 completes before running the final sqlplus script? I am a newbie in shell scripting. =20 << shell script snippet >> ... sqlplus un/pw @script1.sql & sqlplus un/pw @script2.sql & sqlplus un/pw @script3.sql & ... sqlplus un/pw @final.sql ... exit =20 Thank you in advance for your help! =20 - David =20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 Important Notice!! If you are not the intended recipient of this e-mail message, any use, = distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received = this message by mistake, then delete the e-mail message. Thank you. ------_=_NextPart_001_01C598F1.F89BE6F7 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Don't=20 run them in the background (&).  The second and third = statements won't=20 run until the previous SQL finishes.
 
Ron
-----Original Message-----
From:=20 oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] = On=20 Behalf Of d cheng
Sent: Wednesday, August 03, 2005 4:49=20 PM
To: Oracle-L@freelists.org
Subject: shell = scripting=20 help

Hi Listers,
 
I have a korn shell script which needs to run 3 sqlplus = scripts in=20 parallel then run the final sqlplus script.  Is there a way to = ensure=20 that sqlplus scripts 1 thru 3 completes before running the final = sqlplus=20 script?  I am a newbie in shell scripting.
 
<< shell script snippet >>
...
sqlplus un/pw @script1.sql &
sqlplus un/pw @script2.sql &
sqlplus un/pw @script3.sql &
...
sqlplus un/pw @final.sql
...
exit
 
Thank you in advance for your help!
 
- David
 

__________________________________________________
Do You=20 Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection = around=20
http://mail.yahoo.com


Important = Notice!!
If you are not the intended recipient of this e-mail = message, any use, distribution or copying of the message is = prohibited.
Please let me know immediately by return e-mail if you = have received this message by mistake,
then delete the e-mail = message.
Thank you. ------_=_NextPart_001_01C598F1.F89BE6F7-- -- http://www.freelists.org/webpage/oracle-l