post data using curl

2007-02-12 Thread elrondrules
hi need some help from the experts in this group as to how to do the following i have a http listener (A) that has subscribed to a process (B) and listening on a port.. now based on some command line arguments i need to send a xml file to the process B using curl.. is there a way to do this in p

Re: need help to kill a process

2007-02-07 Thread elrondrules
On Feb 6, 8:24 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 06 Feb 2007 22:59:40 -0300, <[EMAIL PROTECTED]> escribió: > > > > > > > this is my code snip. > > within my python script I have the following commands.. > > > > > > import os > > ... > > os.system ("cd /home; ./TestTool &

need help to kill a process

2007-02-06 Thread elrondrules
Hi Am new to python and need your help!! this is my code snip. within my python script I have the following commands.. import os ... os.system ("cd /home; ./TestTool &") os.system ("cd /usr/; sh run.sh load.xml &") I need to kill these 2 process after a particular job is done.. is there any

script not opening applications

2007-02-01 Thread elrondrules
hi i have a html as follows: my hello.py is as follows import os os.system ("export DISPLAY=10.0.1.1:0.0") os.system ("./Test &") #Testtool opens a new window What I expected this to do was once I click "Run Test" it should run the hello.py script and open a new window for the Test ap

Re: Convert raw data to XML

2007-01-30 Thread elrondrules
On Jan 30, 12:05 pm, John Nagle <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Jan 29, 8:54 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > >>En Mon, 29 Jan 2007 23:42:07 -0300, <[EMAIL PROTECTED]> escribió: > > the reason I wanted to write it as a file was to parse the file, l

Re: Convert raw data to XML

2007-01-30 Thread elrondrules
On Jan 29, 8:54 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 29 Jan 2007 23:42:07 -0300, <[EMAIL PROTECTED]> escribió: > > > For example the raw data is as follows > > > SomeText > Description>PassorFail > > > without spaces or new lines. I need this to be written into an XML > > f

Convert raw data to XML

2007-01-29 Thread elrondrules
Hi I am running a HTTP server which receives post from a process. In my do_POST method am receiving raw data. I know that this raw data has a valid XML content and I need to convert this into an XML file. Are there any routines to do this.. if not how to write one.. For example the raw data is

help with subscription to a process

2007-01-26 Thread elrondrules
Hi I am new to python and hence need some help i have a process A that posts events as XML docs. I need to create a listener to this process that subscribes to the process A and as and when a XML doc is posted parse it. I have creted an interface where if I specify the port number on which the li

Http listener

2007-01-25 Thread elrondrules
Hi Am new to python and I am trying to do the following: 1. Write a Http Listener (listening on a particular port) that subscribes to a process. 2. This process posts events as xml docs. 3. Parse the xml docs as and when they are posted. Am trying to find any resources that helps me to do write

Match 2 words in a line of file

2007-01-18 Thread elrondrules
Hi Am pretty new to python and hence this question.. I have file with an output of a process. I need to search this file one line at a time and my pattern is that I am looking for the lines that has the word 'event' and the word 'new'. Note that i need lines that has both the words only and not