Re: [Tutor] Writing over a line in a text file

2006-06-21 Thread kieran flanagan
appearing ( within the various while loops), which just let the user know how long the script has been waiting. Kent, I will try your method and I hope this explains my objective a little better. Thanks KieranOn 6/21/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: kieran flanagan wrote:> Hi

[Tutor] Writing over a line in a text file

2006-06-21 Thread kieran flanagan
Hi I have a question regarding writing text to a file. I am directing output to a logfile. During one of the loops, I have a command that will issue a message on how long it is waiting for by doing something like this while something:     print "\rNow waiting %s seconds .. " % second

[Tutor] Question on Logging Module

2006-06-20 Thread kieran flanagan
Hi, I have written a number of scripts which write to a remote log. I am using the logging module to produce detailed output. Two questions on this module: 1. One of the scripts loops around for a specified period of time. Previously it would print a message to the console detailing how long it h

Re: [Tutor] Writing to a remote file

2006-06-18 Thread kieran flanagan
ovide realtime data as the script processes. So this logfile is not handled by syslog.   This is being done on a Linux machine.   Thanks for the help Kieran     On 6/16/06, Lloyd Kvam <[EMAIL PROTECTED]> wrote: On Fri, 2006-06-16 at 14:47 +0100, kieran flanagan wrote:> Hi>> I want to

[Tutor] Writing to a remote file

2006-06-16 Thread kieran flanagan
Hi I want to run a script on one machine and log output messages to a remote file located on another machine. Is there any easy method of doing this ?. Thanks Kieran-- "Behind every great man, there is a great woman. Behind that woman is Mr.T." ___ Tut

[Tutor] Maintain SessionID with AMARA

2006-06-09 Thread kieran flanagan
Hi I want to have a script that can browse through a website and retrieve information upon request. If I use AMARA for this, in the form i.e.     for subtree in binderytools.pushbind('panel', source='file1.xml'):     print subtree.name And then once on this page 'file1.xml', need to

[Tutor] Pexpect logging out from a remote terminal

2006-05-25 Thread kieran flanagan
Hey I have a script that logs into a remote terminal over ssh and executes a script i.e. 1. Script logs into remote terminal over ssh 2. Executes another script that resides on the remote terminal, with the command 'child.sendline(cmdString)', where cmdString is a reference to the local script be

[Tutor] httpFetch Usage

2006-05-19 Thread kieran flanagan
Hi, Does anyone know where I can get some info on the funtion httpFetch. Its being imported and used in a file I am adding code to and I would like to understand what it does. An example of its usage: response = httpFetch.httpFetch(url, sessionID, someValue) Thanks Kieran -- "Behind every great

[Tutor] Amara pushbind to retrieve data from Xml Doc

2006-05-18 Thread kieran flanagan
Hey I am pretty new to Python ( about a day old ). I am currently writing a small script to just cycle through an XML page and retrieve data if it exists. So for example an extract from the Xml page will have an element tagged entry like so I want this data I can use the following loop to list

[Tutor] Python new comer

2006-05-16 Thread kieran flanagan
Hey I am currently learning Python to start scripting automated tests. A lot of these tests require me to strip out values from xml docs using the minidom feature. So really I am just looking for any good articles to start learning Python as a whole and to learn about using Python as a node iterat