Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38757

Re: Logwatch python

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=7487c1a75=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.048
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'debugging': 0.05; 'none:': 0.05; 'arguments': 0.07; 'incorrect': 0.09; 'subject:python': 0.11; 'descending': 0.16; 'log?': 0.16; 'statement.': 0.16; 'wrote:': 0.17; 'specify': 0.17; 'code,': 0.18; 'causing': 0.20; 'sort': 0.21; 'trying': 0.21; 'example': 0.23; 'to:2**1': 0.23; 'command': 0.24; 'tried': 0.25; 'least': 0.25; 'header:In-Reply- To:1': 0.25; 'values': 0.26; 'forgot': 0.27; 'options': 0.27; 'run': 0.28; "people's": 0.29; 'problem.': 0.32; '-----': 0.32; 'could': 0.32; 'print': 0.32; 'to:addr:python-list': 0.33; 'awesome': 0.35; 'really': 0.36; 'but': 0.36; 'thank': 0.36; 'too': 0.36; 'being': 0.37; 'subject:: ': 0.38; 'store': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'hello,': 0.39; 'your': 0.60; 'most': 0.61; 'you.': 0.61; "you've": 0.61; 'received:194': 0.61; 'first': 0.61; 'respect': 0.63; 'information': 0.63; 'more': 0.63; 'show': 0.63; 'person,': 0.65; 'disclose': 0.69; 'notice:': 0.71; 'privileged.': 0.72; 'article': 0.78; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="4.84,651,1355094000"; d="scan'208";a="1174546"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Tue, 12 Feb 2013 16:22:08 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To Roy Smith <roy@panix.com>, python-list@python.org
In-Reply-To <roy-7C4163.10531409022013@news.panix.com>
Subject Re: Logwatch python
MIME-Version 1.0
X-Mailer Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC7 (Linux)/7.2.0_GA_2669)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1703.1360682559.2939.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360682559 news.xs4all.nl 6904 [2001:888:2000:d::a6]:57433
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38757

Show key headers only | View raw


----- Original Message -----
> In article <1de56e5b-4f9b-477d-a1d4-71e7222a2e4f@googlegroups.com>,
>  Cleuson Alves <cleuson.o@gmail.com> wrote:
> 
> > Hello, I am trying to run this code, but I get an answer incorrect
> > arguments
> > numbers. someone could put an example of arguments for me to use in
> > the / var
> > / log?
> 
> Since the first cave man tried to sort his rock collection into
> descending order of mastodon kills, people have been inventing really
> awesome debugging tools.  One of the earliest, and still near the top
> of
> most people's toolkits is the print statement.
> 
> You've got:
> 
> >     if options.logfile is None or options.findstring is None or
> >     options.logpos is None:
> >         print("Incorrect arguments numbers.\n")
> 
> Start by printing out the values of options.logfile,
> options.findstring,
> and options.logpos.  Then at least you will know which of those three
> is
> causing the problem.

You're being too sarcastic, this guy 's just invented options that are not optional, show some respect :)

To the OP : you forgot to specify one or more of the 3 mandatory options 
--logfile
--logpos
--find

Check your command line.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Logwatch python Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-02-12 16:22 +0100

csiph-web