bobinyec has asked for the wisdom of the Perl Monks concerning the following question:
I have a script file called fred.pl. When fred exits with an error, a log file called fred.log is created. How can I stop that? Here's fred.pl:
#! /bin/perl use strict; use SCMTools::Util; my ($report, $util); my $release_name = $ARGV[0]; my $Retcode = 0; $util = SCMTools::Util->new(); $report = $util->runcmd("Report -general ReleaseView -select name -whe +re \"name = '$release_name' \""); chomp($report); if ($report ne $release_name) { print " fred.pl: Error. There is no release $release_name.\n"; $Retcode = 16; } exit($Retcode);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log File
by ricDeez (Scribe) on Jan 04, 2012 at 23:17 UTC | |
|
Re: Log File
by ~~David~~ (Hermit) on Jan 04, 2012 at 21:09 UTC | |
by tilda (Initiate) on Jan 04, 2012 at 23:14 UTC |