......if(defined($filelist)){ $cmd = "$odhome\\bin\\iwodstart $iwodclient_cfg -k srcArea=$so +urcePath -k targetArea=$targetPath -k definition=$deploymentDefinitio +n -k workareaName=$workareaName -k filelist=$filelist -inst $$ 2>&1"; }elsif(defined($workareaName)){ $cmd = "$odhome\\bin\\iwodstart $iwodclient_cfg -k srcArea=$so +urcePath -k targetArea=$targetPath -k definition=$deploymentDefinitio +n -k workareaName=$workareaName -inst $$ 2>&1"; }else{ $cmd = "$odhome\\bin\\iwodstart $iwodclient_cfg -k srcArea=$so +urcePath -k targetArea=$targetPath -k definition=$deploymentDefinitio +n -inst $$ 2>&1"; } @output = `$cmd`; print "CMD = $cmd <br>"; #Check for the success/failure of the deployment process. $rc = $?; my $success_flag = 0; foreach (@output) { $success_flag = 1 if (/ERROR/i); $success_flag = 1 if (/Status: Failed/i); } ...
In reply to Understanding $? by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |