perfsonar-user - [perfsonar-user] Possible bug in /etc/cron.hourly/logscraper.cron
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Rune Stromsness <>
- To:
- Subject: [perfsonar-user] Possible bug in /etc/cron.hourly/logscraper.cron
- Date: Tue, 03 Feb 2015 13:54:49 -0800
In package perl-perfSONAR_PS-Toolkit-3.4.1-1.pSPS.noarch there is a file
/etc/cron.hourly/logscraper.cron which is generating error messages like:
> gzip: /var/log/.messages-20150203.gz: No such file or directory
> gzip: /var/log/.messages-20150202.gz: No such file or directory
> gzip: /var/log/.messages-20150201.gz: No such file or directory
> gzip: /var/log/.messages-20150131.gz: No such file or directory
> gzip: /var/log/.messages-20150130.gz: No such file or directory
> gzip: /var/log/.messages-20150129.gz: No such file or directory
> gzip: /var/log/.messages-20150128.gz: No such file or directory
> gzip: /var/log/.messages-20150127.gz: No such file or directory
> gzip: /var/log/.messages-20150126.gz: No such file or directory
> gzip: /var/log/perfsonar/.owamp_bwctl.log-20150201.gz: No such file or
> directory
> gzip: /var/log/perfsonar/.owamp_bwctl.log-20150126.gz: No such file or
> directory
I believe that is due to extraneous "." characters in these lines:
> open( LOGFILE, "gunzip -c $log_dir.$l |" ) or die "can't open pipe
> to $log_dir.$l\n";
> }
> else {
> open( LOGFILE, $log_dir.$l ) or die "can't open $log_dir.$l\n";
and
> open( LOGFILE, "gunzip -c $log_dir.$l |" ) or die "can't open pipe
> to $log_dir.$l\n";
> }
> else {
> open( LOGFILE, $log_dir.$l ) or die "can't open $log_dir.$l\n";
>
(in two different while blocks in the file).
Does that look correct to anyone else?
Rune
Attachment:
signature.asc
Description: OpenPGP digital signature
- [perfsonar-user] Possible bug in /etc/cron.hourly/logscraper.cron, Rune Stromsness, 02/03/2015
- Re: [perfsonar-user] Possible bug in /etc/cron.hourly/logscraper.cron, Andrew Lake, 02/04/2015
Archive powered by MHonArc 2.6.16.