Home
TeamSite
TeamSite, LiveSite and OpenDeploy
get iwsubmit return in perl ?
Andy Knipp
I have this command in a perl script:
$submit_cmd = "/u03/iw-home/bin/iwsubmit -x $file daily_update";
$out = `$submit_cmd`;
print LOG "command $submit_cmd \n out $out\n";
if ($out) {
finish ("File was NOT submitted \n");
} else {
print LOG "File submit successful \n";
}
This will run as a cron job, but I cannot catch an error. In debugging I submitted an error, & iwsubmit sent the error to STDERR, so $out was blank and my script went along.
How can I get the return code ?
TIA
ANdy
Find more posts tagged with
Comments
There are no comments yet