[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-admin
Subject:    [HPADM] starting two jobs from within a script
From:       Guy Rotty <rotty.guy () skynet ! be>
Date:       2001-11-29 17:33:26
[Download RAW message or body]

Hi,

We are using a script that launches legato backups simultaneous via a =
loop
But, as far as i see, although it's clearly in a loop and the command is =
started
with an & on the end, that it does wait till the end before performing =
the next loop ?

I'll just explain it with the script :

for i in $(....); do
  ksh $SAVESCRIPT &
done

and SAVESCRIPT is looking basically like this :

trap ' return message here ' 0
save ......


If the trap is preventing the loop from starting simultaneously, is =
there a workaround ?

Thanks,

Guy

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>We are using a script that launches legato backups 
simultaneous via a loop</FONT></DIV>
<DIV><FONT size=2>But, as far as i see, although it's clearly in a loop and the 
command is started</FONT></DIV>
<DIV><FONT size=2>with an &amp; on the end, that it does wait till the end 
before performing the next loop ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>I'll just explain it with the script :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>for i in $(....); do</FONT></DIV>
<DIV><FONT size=2>&nbsp; ksh $SAVESCRIPT &amp;</FONT></DIV>
<DIV><FONT size=2>done</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>and SAVESCRIPT is looking basically like this :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>trap ' return message here ' 0</FONT></DIV>
<DIV><FONT size=2>save ......</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>If the trap is preventing the loop from starting 
simultaneously, is there a workaround ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Guy</FONT></DIV></BODY></HTML>

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl

 Archives:  ftp.dutchworks.nl/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic