Noame has asked for the wisdom of the Perl Monks concerning the following question:
Please advice, Thanks$Cmd = "$HOME/bin/P2.pl"; die print "\n\n-E- Files: '$Cmd does not exist.\n" if (-e $Cmd +); print "\n-I- Executing:\n\t$Cmd\n"; $status = system ($Cmd); if ($status) { my $errMsg = "-E- Failed to execute:\n\t$Cmd "; print "\n\n$errMsg\n"; killBuild ("$errMsg"); exit 1; } else { print "\n-I- Script:\n\t'$Cmd\n Completed successfully.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: STDOUT qustion
by CountZero (Bishop) on Jun 14, 2009 at 07:44 UTC | |
|
Re: STDOUT qustion
by linuxer (Curate) on Jun 14, 2009 at 11:44 UTC | |
|
Re: STDOUT qustion
by baxy77bax (Deacon) on Jun 14, 2009 at 08:37 UTC |