manishrathi has asked for the wisdom of the Perl Monks concerning the following question:
......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); } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Understanding $?
by rjt (Curate) on Mar 07, 2013 at 01:24 UTC | |
|
Re: Understanding $?
by kennethk (Abbot) on Mar 06, 2013 at 22:44 UTC |