Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Making a for loop parallel instead of serial - trolling for ideas

Re: Making a for loop parallel instead of serial - trolling for ideas

From: Barry Margolin <barmar_at_genuity.net>
Date: Tue, 16 Apr 2002 14:45:19 GMT
Message-ID: <3OWu8.9$FR5.518@paloalto-snr2.gtei.net>


In article <t3Mu8.233$RO2.30964_at_news1.iquest.net>, David Van Zandt <dvanzandt_at_iquest.net> wrote:
>Thanks Laura. I'm aware of doing the "nohup file &". The sticker is,
>inside the FOR loop I have multiple commands:
>for fi in $SIDLIST; do
>. db_$fi
>echo xxx
>/path/export '/' file=$destdir/$fi.dmp parfile=$pardir/export.par
>[some error handling]
>done
>
>Man suggests I can do "nohup (command1; command2; commandn) &. I'll try the
>parentheses between the do and done, and see what happens (in dev, of
>course...).

You shouldn't need the nohup. Just put the commands in parentheses and end it with &.

-- 
Barry Margolin, barmar_at_genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Received on Tue Apr 16 2002 - 09:45:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US