multithreading - How to make my script wait till the previous command completes? -


i have following perl script code install oracle db application.

system("./runinstaller -silent -responsefile filename.rsp"); if($?==0) {    //perform operation type1; } else {    //perform operation type2; } 

in code execution of if block should performed after complete installation of application. script runs parallel installer.

i have used both `` , exec instead of system, none works needed.

help me in solving this.

thanks in advance.

using of -waitforcompletion option of runinstaller makes script wait till complete execution. now:

system("./runinstaller -silent -responsefile filename.rsp"); 

will become

system./runinstaller -silent -waitforcompletion -responsefile filename.rsp"); 

for more info on runinstaller click here


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -