https://bugzilla.novell.com/show_bug.cgi?id=701208 https://bugzilla.novell.com/show_bug.cgi?id=701208#c0 Summary: openSUSE:11.4/nagios: Improvement of the cron.weekly script Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: All OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: 3rd party software AssignedTo: lrupp@novell.com ReportedBy: los.danielos@gmail.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: Customer Blocker: --- Created an attachment (id=435631) --> (http://bugzilla.novell.com/attachment.cgi?id=435631) new version of the nagios cron.weekly script used for compressing logfiles A small improvement for the cron.weekly script used included in the nagios package. The previous one used parsing the output of the echo command in order to loop through the log files, and that's something that should never be done if globbing is available in the shell. Also, the previous script didn't really make much sense from an algorithmic point of view, checking only if the first file exists, and if it is, then passing all the found files to bzip2. I hope this version of the script makes a little more sense to you. It has also been rewritten to real bash, but that shouldn't be trouble since cron depends on bash anyway. Attached, please find the new version of the script. D.K. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.