[mythtv-users] trunk gentoo ebuilds and logrotate
Phil Bridges
gravityhammer at gmail.com
Wed Apr 18 03:59:13 UTC 2012
On Tue, Apr 17, 2012 at 11:16 PM, Bill Meek <keemllib at gmail.com> wrote:
> On 04/17/2012 07:31 PM, Phil Bridges wrote:
> ...
>
>> Sorry to dredge up an old topic, but I'm trying to get my logcleanup
>> script working. If I run it from the command line, I get:
>>
>> # python /usr/share/mythtv/bin/logcleanup.py
>> Traceback (most recent call last):
>> File "/usr/share/mythtv/bin/logcleanup.py", line 133, in<module>
>> main(opts)
>> File "/usr/share/mythtv/bin/logcleanup.py", line 95, in main
>> ls = sorted(LogFile.filter(opts.logpath, os.listdir(opts.logpath)))
>> File "/usr/share/mythtv/bin/logcleanup.py", line 35, in filter
>> return [cls(path, f) for f in filelist if cls._re.match(f)]
>> File "/usr/share/mythtv/bin/logcleanup.py", line 48, in __init__
>> self.sequence = int(m.group('sequence'))
>> ValueError: invalid literal for int() with base 10: '.1'
>
>
> Hi;
>
> I never typed: python .../logcleanup.py, just the command itself.
> look at the 1st line in the file, that tells it to use python.
>
>
>> Is there anything that describes the parameters?
>
>
> logcleanup.py -h, if that's what you mean. To see the default
> values, look at the last 10 lines of the file.
>
Thanks for the response. Going to the directory and executing it
gives the same error, even if I use the parameters that have been
dumped into my daily cronjob.
More information about the mythtv-users
mailing list