[Tutor] Fwd: New to Python

Wayne srilyk at gmail.com
Wed Oct 28 11:05:38 CET 2009

Remember to hit Reply to all

- Forwarding your message onto the list

---------- Forwarded message ----------
From: <asterix09 at petlover.com>
Date: Wed, Oct 28, 2009 at 1:00 AM
Subject: Re: [Tutor] New to Python
To: srilyk at gmail.com

Hi Wayne,

I will try as best to explain what I need to do.

I have a log file. In that log file thre contains text. Something along the
lines of this.


I need to search that log file (thought of using grep) and write each text
after the "=" sign to another text file. So the other text file (call it "*
List*") will contain a list of all the differernt values for 115.

After I have created that, i then need to run a script that will run through
the latest log file and compare the *List *from the log file and any new
115=... values that are not in the* List *text file must be added, vice

End result is that I want to track and see how many values I can get in the

The log file is siuated on a different server/machine on my network, so I
want the script to be able to copy the log file from the server to my

I hope that makes sense.

 Many thanks for your help.

-----Original Message-----
From: Wayne <srilyk at gmail.com>
To: asterix09 at petlover.com
Cc: tutor at python.org
Sent: Tue, Oct 27, 2009 6:53 pm
Subject: Re: [Tutor] New to Python

 On Tue, Oct 27, 2009 at 10:35 AM, <asterix09 at petlover.com> wrote:

> Hi there,
> How do you connect to a different server using python? (I have not used
> python before)

 What kind of server? What do you ultimately want to do?

 see:  http://catb.org/~esr/faqs/smart-questions.html#beprecise

 for more info about asking good questions. We can't help you if we don't
know what you want.

To be considered stupid and to be told so is more painful than being called
gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness,
every vice, has found its defenders, its rhetoric, its ennoblement and
exaltation, but stupidity hasn’t. - Primo Levi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091028/43587913/attachment.htm>

More information about the Tutor mailing list