[mythtv-users] trunk gentoo ebuilds and logrotate

Bill Meek keemllib at gmail.com
Wed Apr 18 03:16:40 UTC 2012


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.

-- 
Bill


More information about the mythtv-users mailing list