class mtail:
- subversion_id = "$Id$"
-
default_time_format = "%H:%M:%S"
def __init__ (self, args ):
usage = """usage: %prog [options] file-or-dir ...
example:
# %prog -e '*access*' /var/log"""
- parser=OptionParser(usage=usage,version=self.subversion_id)
+ parser=OptionParser(usage=usage)
# tail_period
parser.add_option("-p","--period", type="int", dest="tail_period", default=1,
help="Files check period in seconds")
self.args.append("/var/log/httpd/sfa_access_log")
if self.options.verbose:
- print 'Version:',self.subversion_id
print 'Options:',self.options
print 'Arguments:',self.args