I have the following Perl script code to install oracle DB application.
system("./runInstaller -silent -responsefile filename.rsp");
if($?==0)
{
//perform some operation type1;
}
else
{
//perform some operation type2;
}
In this code the execution of if block should be performed after the complete installation of the application. But the script runs parallel to the installer.
I have used both `` and exec instead of system, but none works as needed.
Help me in solving this.
Thanks in advance.
systemwaits for the process it creatures to exit before returning. That meansrunInstalleris returning before you think it does.