Hello to all!
I want to parse a log file with the following format for
example:
TIMESTAMPEOperation FileName
Bytes
12/Jan/2010:16:04:59 +0200 EXISTS sample3.3gp 37151
12/Jan/2010:16:04:59 +0200 EXISTSsample3.3gp 37151
12/Jan/2010:16:04:59 +0200 EX
On Jan 18, 11:56 pm, Tim Chase wrote:
> kak...@gmail.com wrote:
> > I want to parse a log file with the following format for
> > example:
> > TIMESTAMPE Operation FileName
> > Bytes
> > 12/Jan/2010:16:04:59 +0200 EXISTS sampl
Hello,
I would like to make a program that takes a text file with the
following representation:
outlook = sunny
| humidity <= 70: yes (2.0)
| humidity > 70: no (3.0)
outlook = overcast: yes (4.0)
outlook = rainy
| windy = TRUE: no (2.0)
| windy = FALSE: yes (3.0)
and convert it to xml fil
Hi to all,
what i want is to search a folder, and if the last access date of the
files in that folder is greater than, lets say 7 days, those files
deleted. (Somekind of a file cleaner script)
I had problems with converting
now = today = datetime.date.today()
and
stats = os.stat(file)
lastAccessDa
Hi to all, i want to ask you a question, concerning the best way to do
the following as a POST request:
There is server-servlet that accepts xml commands
It had the following HTTP request headers:
Host: somehost.com
User-Agent: Jakarta Commons-HttpClient
Content
On May 10, 10:22 am, Kushal Kumaran
wrote:
> On Mon, May 10, 2010 at 7:30 PM, kak...@gmail.com wrote:
> > Hi to all, i want to ask you a question, concerning the best way to do
> > the following as a POST request:
> > There is server-servlet that accepts xml commands
>
On May 11, 5:06 am, Kushal Kumaran
wrote:
> On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com wrote:
> > On May 10, 10:22 am, Kushal Kumaran
> > wrote:
> >> On Mon, May 10, 2010 at 7:30 PM, kak...@gmail.com wrote:
> >> > Hi to all, i want to ask you a que
On May 11, 10:56 am, "kak...@gmail.com" wrote:
> On May 11, 5:06 am, Kushal Kumaran
> wrote:
>
>
>
> > On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com wrote:
> > > On May 10, 10:22 am, Kushal Kumaran
> > > wrote:
> > >> On
On May 12, 6:13 am, Kushal Kumaran
wrote:
> On Tue, May 11, 2010 at 3:59 PM, kak...@gmail.com wrote:
> > On May 11, 10:56 am, "kak...@gmail.com" wrote:
> >> On May 11, 5:06 am, Kushal Kumaran
> >> wrote:
>
> >> > On Mon, May 10, 2010 at 8:26
Hi there,
i'm writing a console app using the cmd library. I also use
xml.dom.minidom to parse an xml file that i get as a response to an
HTTP Post request.
with
data = response.read()
i get the xml response from the server.
i then feed the parser with that data.
myDoc = parse(data)
but it doesn't
On May 14, 7:10 am, Stefan Behnel wrote:
> kak...@gmail.com, 14.05.2010 12:46:
>
> > Hi there,
> > i'm writing a console app using the cmd library. I also use
> > xml.dom.minidom to parse an xml file that i get as a response to an
> > HTTP Post request.
> &
Hi to all, let's say we have the following Xml
17.1
6.4
15.5
7.8
How can i get the players name, age and height?
DOM or SAX and how
Thanks
Antonis
--
http://mail.python.org/mailman/listinfo/python-list
On May 14, 6:22 pm, Stefan Behnel wrote:
> kak...@gmail.com, 14.05.2010 16:57:
>
> > Hi to all, let's say we have the following Xml
> >
> >
> > 17.1
> > 6.4
> >
> >
> > 15.5
> > 7.8
> >
&
On May 16, 10:52 am, Stefan Behnel wrote:
> Jake b, 16.05.2010 09:40:
>
> > Check out Amara:http://www.xml3k.org/Amara/QuickRef
>
> > It looks promising. For a pythonic solution over sax / dom.
>
> > >>> Iter(doc.team.player)
> > # or
> > >>> doc.team.player[0].name
>
> Ah, right, and there's also
Hi pythonistas,
While playing with the Python Standard Library, i came across "cmd".
So I'm trying to make a console application. Everything works fine, i
created many function with do_(self, line) prefix, but when i
tried to create a function with more arguments
i can't make it work. e.g
def
On May 17, 4:12 pm, Tim Chase wrote:
> On 05/17/2010 07:11 AM, kak...@gmail.com wrote:
>
> > While playing with the Python Standard Library, i came across "cmd".
> > So I'm trying to make a console application. Everything works fine, i
> > created many f
On May 17, 4:34 pm, Peter Otten <__pete...@web.de> wrote:
> kak...@gmail.com wrote:
> > Hi pythonistas,
> > While playing with the Python Standard Library, i came across "cmd".
> > So I'm trying to make a console application. Everything works fine, i
&
Hi to all,
i need some hints about a console application i' m trying.
I want to make it act as a client and as a server at a same time.
And since it is a console application i' m using cmd library.
I want something that works like asterisk. while working with my app
i want to listen for incoming re
On May 20, 1:54 am, "kak...@gmail.com" wrote:
> Hi to all,
> i need some hints about a console application i' m trying.
> I want to make it act as a client and as a server at a same time.
> And since it is a console application i' m using cmd library.
> I want
Hi to all,
i'm creating a command line application using asyncore and cmd. At
if __name__ == '__main__':
import socket
args = sys.argv[1:]
if not args:
print "Usage: %s querystring" % sys.argv[0]
sys.exit(0)
address = ('localhost', 0) # let the kernel give us a p
On May 25, 4:55 am, Michele Simionato
wrote:
> On May 25, 10:42 am, "kak...@gmail.com" wrote:
>
>
>
> > Hi to all,
> > i'm creating a command line application using asyncore and cmd. At
>
> > if __name__ == '__main__':
> >
On May 25, 6:48 am, Giampaolo Rodolà wrote:
> 2010/5/25 Michele Simionato :
>
> > On May 25, 12:03 pm, Giampaolo Rodolà wrote:
> >> Too bad cmdloop() doesn't provide an argument to return immediately.
> >> Why don't you submit this patch on the bug tracker?
>
> >> ---
> >> Giampaolohttp://code.g
On May 25, 5:23 pm, Michele Simionato
wrote:
> On May 25, 2:56 pm, "kak...@gmail.com" wrote:
>
> > Could you please provide me with a simple example how to do this with
> > threads.
> > I don't know where to put the cmdloop().
> > Please help, i
On May 25, 5:47 pm, "kak...@gmail.com" wrote:
> On May 25, 5:23 pm, Michele Simionato
> wrote:
>
> > On May 25, 2:56 pm, "kak...@gmail.com" wrote:
>
> > > Could you please provide me with a simple example how to do this with
> > &
On May 26, 2:03 am, exar...@twistedmatrix.com wrote:
> On 04:31 pm, kak...@gmail.com wrote:
>
>
>
> >On May 25, 5:47 pm, "kak...@gmail.com" wrote:
> >>On May 25, 5:23 pm, Michele Simionato
> >>wrote:
>
> >> > On May 25, 2:56 pm, &quo
Hi in the following code
class MyClientHandler(SocketServer.BaseRequestHandler):
def handle(self):
print self.client_address, now( )
time.sleep(5)
while True:
xmltxt = self.request.recv(1024)<--is this ok -
enough?
if not xmltxt: break
On May 28, 3:23 pm, Stefan Behnel wrote:
> kak...@gmail.com, 28.05.2010 13:50:
>
> > Hi in the following code
>
> > class MyClientHandler(SocketServer.BaseRequestHandler):
> > def handle(self):
> > print self.client_address, now( )
> >
Hi i have the following xml message i want to omit the headers, any
hints?
POST /test/pcp/Listener HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 127.0.0.1:50002
Content-Length: 547
http://demo.com/demo";>
scvdcvsdv
sdfv
Antonis Kaklis
awa
On 28 Μάϊος, 18:45, Jon Clements wrote:
> On 28 May, 16:24, "kak...@gmail.com" wrote:
>
>
>
>
>
> > Hi i have the following xml message i want to omit the headers, any
> > hints?
>
> > POST /test/pcp/Listener HTTP/1.1
> > User-Agent: J
On May 28, 7:48 pm, Peter Otten <__pete...@web.de> wrote:
> Jon Clements wrote:
> > On 28 May, 16:24, "kak...@gmail.com" wrote:
> >> Hi i have the following xml message i want to omit the headers, any
> >> hints?
> > Assuming the header is sepa
hi,
I have implement a command line app using Python's cmd library module
and it works fine.
I 've also create a simple threaded socket server. How can i merge the
two ones, so that the
console app, is also a listening server? How can i achieve that with
threads?
I'm trying for days and i can't mak
Hi i'm doing the following:
def start_element(name, attrs):
print 'Start element:', name, attrs
def end_element(name):
print 'End element:', name
def char_data(data):
print 'Character data:', repr(data)
class SimpleServer(LineReceiver): # Using Twisted
def connectionMade(self):
Hi i'm doing the following:
def start_element(name, attrs):
print 'Start element:', name, attrs
def end_element(name):
print 'End element:', name
def char_data(data):
print 'Character data:', repr(data)
class SimpleServer(LineReceiver): # Using Twisted
def connectionMade(self):
On Jun 1, 9:51 am, John Bokma wrote:
> "kak...@gmail.com" writes:
> > I got the following error
> > --- ---
> > File "/usr/lib/python2.6/site-packages/Twisted-10.0.0-py2.6-linux-
> > x86_64.egg/twisted/internet/selectreactor.py", line 1
On Jun 1, 10:34 am, Stefan Behnel wrote:
> kak...@gmail.com, 01.06.2010 16:00:
>
> > how can i fix it, how to "ignore" the headers and parse only
> > the XML?
>
> Consider reading the answers you got in the last thread that you opened
> with exactly this quest
On Jun 1, 11:09 am, John Bokma wrote:
> "kak...@gmail.com" writes:
> > On Jun 1, 10:34 am, Stefan Behnel wrote:
> >> kak...@gmail.com, 01.06.2010 16:00:
>
> >> > how can i fix it, how to "ignore" the headers and parse only
> >> >
On Jun 1, 11:12 am, "kak...@gmail.com" wrote:
> On Jun 1, 11:09 am, John Bokma wrote:
>
>
>
> > "kak...@gmail.com" writes:
> > > On Jun 1, 10:34 am, Stefan Behnel wrote:
> > >> kak...@gmail.com, 01.06.2010 16:00:
>
> &g
On 2 Ιούν, 03:47, John Machin wrote:
> On Jun 2, 1:57 am, "kak...@gmail.com" wrote:
>
>
>
>
>
> > On Jun 1, 11:12 am, "kak...@gmail.com" wrote:
>
> > > On Jun 1, 11:09 am, John Bokma wrote:
>
> > > > "kak...@gmail.com&
Hi to all, i want to stress test a tomcat web server, so that i
could find out its limits. e.g how many users can be connected and
request a resource concurrently.
I used JMeter which is an excellent tool, but i would like to use a
more pythonic approach.
Any hints
Antonis
--
http://mail.python
On Jul 9, 4:44 pm, Simon Brunning wrote:
> On 9 July 2010 14:17, kak...@gmail.com wrote:
>
> > Hi to all, i want to stress test a tomcat web server, so that i
> > could find out its limits. e.g how many users can be connected and
> > request a resource concurrently.
&g
Hello again to all,
While playing and extending stdiodemo.py,
a came up with a thought of adding command line history.
Is this possible?
Any hints?
Thanks
Antonis K.
--
http://mail.python.org/mailman/listinfo/python-list
Hi to all,
I 'm writing a linux console app with sockets. It's basically a client
app that fires commands in a server.
For example:
$log user 55
$sessions list
$server list etc.
What i want is, after entering some commands, to press the up arrow
key and see the previous commands that i have execute
On Jul 21, 12:47 am, Benjamin Kaplan wrote:
> On Tue, Jul 20, 2010 at 2:38 PM, kak...@gmail.com wrote:
> > Hi to all,
> > I 'm writing a linux console app with sockets. It's basically a client
> > app that fires commands in a server.
> > For example
On Jul 21, 9:03 am, Michele Simionato
wrote:
> On Jul 20, 11:38 pm, "kak...@gmail.com" wrote:
>
> > Hi to all,
> > I 'm writing a linux console app with sockets. It's basically a client
> > app that fires commands in a server.
> > For example:
&g
Hi pythonistas,
>From the subject of my message it's clear that i get an xml message
from a socket, i parse it and the result is a list like the one that
follows:
ID_Col
4 Serverak ip OFFLINE
29 Server and2ip OFFLINE
5 Proxy l34e
On Jul 21, 8:58 am, Stefan Behnel wrote:
> kak...@gmail.com, 21.07.2010 14:36:
>
> > From the subject of my message it's clear that i get an xml message
> > from a socket,
>
> Not at all, but now that you say it...
>
>
>
> > i parse it and the re
On Jul 21, 9:04 am, "kak...@gmail.com" wrote:
> On Jul 21, 8:58 am, Stefan Behnel wrote:
>
>
>
> > kak...@gmail.com, 21.07.2010 14:36:
>
> > > From the subject of my message it's clear that i get an xml message
> > > from a socket,
>
>
Well i have the following number 1279796174846
i did the following:
mdate = 1279796174846
tempStr = str(mdate)
tempStr2 = tempStr[:-3]
tempInt = int(tempStr2)
print "Last Login :", datetime.datetime.fromtimestamp(tempInt)
that prints out: 2010-07-22 06:56:14
But when i check my answer at http://
On Jul 22, 12:56 pm, Thomas Jollans wrote:
> On 07/21/2010 03:38 PM, kak...@gmail.com wrote:
>
>
>
> > On Jul 21, 9:04 am, "kak...@gmail.com" wrote:
> >> On Jul 21, 8:58 am, Stefan Behnel wrote:
>
> >>> kak...@gmail.com, 21.07.2010 14:36:
>
Hello,
I receive the following different Xml Messages from a socket:
http://test.com/pt";>
5a62ded
101
Angie
online
Some IP
http://test.com/pt";>
Server server-1 is going down for rede
On Jul 27, 6:30 am, Stefan Behnel wrote:
> kak...@gmail.com, 27.07.2010 12:17:
>
> > I receive the following different Xml Messages from a socket:
>
> From a bare socket? TCP? UDP? Or what else?
>
> > Which is the best way to make a distinction between them so that eve
On Jul 27, 8:14 am, Stefan Behnel wrote:
> kak...@gmail.com, 27.07.2010 13:58:
>
>
>
> > On Jul 27, 6:30 am, Stefan Behnel wrote:
> >> kak...@gmail.com, 27.07.2010 12:17:
>
> >>> I receive the following different Xml Messages from a socket:
>
>
On Jul 27, 8:41 am, Stefan Behnel wrote:
> kak...@gmail.com, 27.07.2010 14:26:
>
>
>
> > On Jul 27, 8:14 am, Stefan Behnel wrote:
> >> kak...@gmail.com, 27.07.2010 13:58:
>
> >>> On Jul 27, 6:30 am, Stefan Behnel wrote:
> >>>> kak...@gmail
On Jul 27, 9:06 am, Stefan Behnel wrote:
> kak...@gmail.com, 27.07.2010 14:43:
>
>
>
> > On Jul 27, 8:41 am, Stefan Behnel wrote:
> >> kak...@gmail.com, 27.07.2010 14:26:
>
> >>> On Jul 27, 8:14 am, Stefan Behnel wrote:
> >>>> kak...@
54 matches
Mail list logo