Hey gurus-

I've got a script in cron that does <snippet>:

foreach $logFile (@primaryLogFileNames) { if (-e "$dupeDir/$logFile") { $error = system("$gzipLoc $dupeDir/$logFile"); if ($error) { $priZipDupeMessage .= "error zipping $dupeDir/$logFile\n"; } else { $priZipDupeMessage .= "zipped $dupeDir/$logFile\n"; } } elsif (-e "$dupeDir/$logFile\.gz") { $priZipDupeMessage .= "$dupeDir/$logFile already zipped\n"; } }

Simple enough. It runs just fine under 5.8.0. Under 5.8.3, however, we get this back from the cron:

Can't exec "no": No such file or directory at /export/home/oracle/scripts/arcLogCheck.pl line 407, <MORELOGS> line 4.

The <MORELOGS> stuff comes from:

open(MORELOGS, "$arcLogsUsToo"); while (<MORELOGS>) { $line = $_; chomp($line); if ($line =~ /^#/) { # do nothing } else { if ($line =~ /(\S+)\s(.+)/) { $logPath = $1; $logDate = $2; $priLogDate{$logPath} = $logDate; push(@primaryLogPaths, $logPath); push(@primaryLogFileNames, basename($logPath)); $dupeLogDate{$logPath} = $logDate; $logPathWzip = $logPath . ".gz"; $dupeLogDate{$logPathWzip} = $logDate; push(@dupeLogPaths,$logPath); } } }

Any ideas?


In reply to 5.8.3 error not thrown by 5.8.0 by gennari

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.