We use 6.0.1 OD on SolarisI am trying to catch error code returned after deployment and we use iwodstart to run the deploymentWe were trying to use something like this: my $deploy_cmd = "$odhome/bin/iwodstart $file"; my $status = `$deploy_cmd 2>&1`; if ($status !~ /(.*)Completed(.*)/i) { DEPLOYMENT FAILS , take next action } else { DEPLOYMENT SUCCESS, take next action }But $status does not seem to return anythingPlease advise
my $deploy_cmd = "$odhome/bin/iwodcmd start $file";my $results = qx($deploy_cmd 2>&1);my $status = $? >> 8;if ($status == 1){ die("deployment failed to start:\n$results\n");}elsif ($status == 2){ die("deployment ran but failed:\n$results\n");}elsif ($status == 9) { die("deployment completed with errors:\n$results\n");}elsif ($status != 0){ die("unknown exit status - probably a failure:\n$results\n");}else { # deployment succeeded}
Fish, whats the differen ce in using iwodstart , we have been using it since long
you should be using iwodcmd start