Remember to hit Reply to all<div><br></div><div>- Forwarding your message onto the list<br><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr">&lt;<a href="mailto:asterix09@petlover.com">asterix09@petlover.com</a>&gt;</span><br>

Date: Wed, Oct 28, 2009 at 1:00 AM<br>Subject: Re: [Tutor] New to Python<br>To: <a href="mailto:srilyk@gmail.com">srilyk@gmail.com</a><br><br><br><font color="black" size="2" face="arial">
<div>Hi Wayne,</div>


<div> </div>


<div>I will try as best to explain what I need to do.</div>


<div> </div>


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


<div> </div>


<div>115=WAS</div>


<div>115=GAD</div>


<div>115=TRE</div>


<div> </div>


<div>I need to search that log file (thought of using grep) and write each text after the &quot;=&quot; sign to another text file. So the other text file (call it &quot;<strong>List</strong>&quot;) will contain a list of all the differernt values for 115.</div>




<div> </div>


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




<div> </div>


<div>End result is that I want to track and see how many values I can get in the 115=...</div>


<div> </div>


<div>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 machine.</div>


<div> </div>


<div>I hope that makes sense.<br>
<br>
</div>


<div>Many thanks for your help.</div><div><div></div><div class="h5">


<div><br>
-----Original Message-----<br>
From: Wayne &lt;<a href="mailto:srilyk@gmail.com" target="_blank">srilyk@gmail.com</a>&gt;<br>
To: <a href="mailto:asterix09@petlover.com" target="_blank">asterix09@petlover.com</a><br>
Cc: <a href="mailto:tutor@python.org" target="_blank">tutor@python.org</a><br>
Sent: Tue, Oct 27, 2009 6:53 pm<br>
Subject: Re: [Tutor] New to Python<br>
<br>
</div>


<div>

<div class="gmail_quote">On Tue, Oct 27, 2009 at 10:35 AM, <span dir="ltr">&lt;<a>asterix09@petlover.com</a>&gt;</span> wrote:<br>

<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><font color="black" size="2" face="arial">

<div>Hi there,</div>


<div> </div>


<div>How do you connect to a different server using python? (I have not used python before)</div>
</font></blockquote>

<div><br>
</div>


<div>What kind of server? What do you ultimately want to do? </div>


<div><br>
</div>


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


<div><br>
</div>


<div>for more info about asking good questions. We can&#39;t help you if we don&#39;t know what you want.</div>


<div>-Wayne</div>
</div>
</div>
</div></div></font>
</div><br><br clear="all"><br>-- <br>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<br>


</div></div>