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
On Jan 18, 11:56 pm, Tim Chase python.l...@tim.thechases.com 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 sample3.3gp 37151
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)
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 file
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
--
On Jul 9, 4:44 pm, Simon Brunning si...@brunningonline.net wrote:
On 9 July 2010 14:17, kak...@gmail.com 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
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
On Jul 21, 12:47 am, Benjamin Kaplan benjamin.kap...@case.edu wrote:
On Tue, Jul 20, 2010 at 2:38 PM, kak...@gmail.com 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:
$log user 55
On Jul 21, 9:03 am, Michele Simionato michele.simion...@gmail.com
wrote:
On Jul 20, 11:38 pm, kak...@gmail.com 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:
$log user 55
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 stefan...@behnel.de 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 result is a list like the one that
follows
On Jul 21, 9:04 am, kak...@gmail.com kak...@gmail.com wrote:
On Jul 21, 8:58 am, Stefan Behnel stefan...@behnel.de 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
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
On Jul 22, 12:56 pm, Thomas Jollans tho...@jollans.com wrote:
On 07/21/2010 03:38 PM, kak...@gmail.com wrote:
On Jul 21, 9:04 am, kak...@gmail.com kak...@gmail.com wrote:
On Jul 21, 8:58 am, Stefan Behnel stefan...@behnel.de wrote:
kak...@gmail.com, 21.07.2010 14:36:
From the subject
Hello,
I receive the following different Xml Messages from a socket:
p_control_message serverIP=server-2 xmlns=http://test.com/pt;
cmdReply
sessionList
session
id5a62ded/id
subscriberId101/subscriberId
subscriberNameAngie/subscriberName
On Jul 27, 6:30 am, Stefan Behnel stefan...@behnel.de 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 every
time my app
On Jul 27, 8:14 am, Stefan Behnel stefan...@behnel.de 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:
From a bare socket? TCP? UDP? Or what else
On Jul 27, 8:41 am, Stefan Behnel stefan...@behnel.de 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.com, 27.07.2010 12:17:
I receive the following
On Jul 27, 9:06 am, Stefan Behnel stefan...@behnel.de 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...@gmail.com, 27.07.2010 13:58:
On Jul 27, 6:30 am, Stefan
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
On May 10, 10:22 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Mon, May 10, 2010 at 7:30 PM, kak...@gmail.com 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
On May 11, 5:06 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com kak...@gmail.com wrote:
On May 10, 10:22 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Mon, May 10, 2010 at 7:30 PM, kak...@gmail.com kak...@gmail.com
On May 11, 10:56 am, kak...@gmail.com kak...@gmail.com wrote:
On May 11, 5:06 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com kak...@gmail.com wrote:
On May 10, 10:22 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote
On May 12, 6:13 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Tue, May 11, 2010 at 3:59 PM, kak...@gmail.com kak...@gmail.com wrote:
On May 11, 10:56 am, kak...@gmail.com kak...@gmail.com wrote:
On May 11, 5:06 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote
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 stefan...@behnel.de 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.
with
data = response.read
Hi to all, let's say we have the following Xml
team
player name='Mick Fowler' age='27' height='1.96m'
points17.1/points
rebounds6.4/rebounds
/player
player name='Ivan Ivanovic' age='29' height='2.04m'
points15.5/points
rebounds7.8/rebounds
/player
/team
How can i get the
On May 14, 6:22 pm, Stefan Behnel stefan...@behnel.de wrote:
kak...@gmail.com, 14.05.2010 16:57:
Hi to all, let's say we have the following Xml
team
player name='Mick Fowler' age='27' height='1.96m'
points17.1/points
rebounds6.4/rebounds
/player
player name='Ivan
On May 16, 10:52 am, Stefan Behnel stefan...@behnel.de 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 python.l...@tim.thechases.com 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 function with do_
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
created many function with do_(self, line) prefix
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
On May 20, 1:54 am, kak...@gmail.com 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 something that works like
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
On May 25, 4:55 am, Michele Simionato michele.simion...@gmail.com
wrote:
On May 25, 10:42 am, kak...@gmail.com kak...@gmail.com wrote:
Hi to all,
i'm creating a command line application using asyncore and cmd. At
if __name__ == '__main__':
import socket
args = sys.argv[1
On May 25, 6:48 am, Giampaolo Rodolà g.rod...@gmail.com wrote:
2010/5/25 Michele Simionato michele.simion...@gmail.com:
On May 25, 12:03 pm, Giampaolo Rodolà g.rod...@gmail.com wrote:
Too bad cmdloop() doesn't provide an argument to return immediately.
Why don't you submit this patch on
On May 25, 5:23 pm, Michele Simionato michele.simion...@gmail.com
wrote:
On May 25, 2:56 pm, kak...@gmail.com 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' m so confused
On May 25, 5:47 pm, kak...@gmail.com kak...@gmail.com wrote:
On May 25, 5:23 pm, Michele Simionato michele.simion...@gmail.com
wrote:
On May 25, 2:56 pm, kak...@gmail.com kak...@gmail.com wrote:
Could you please provide me with a simple example how to do this with
threads.
I don't
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 kak...@gmail.com wrote:
On May 25, 5:23 pm, Michele Simionato michele.simion...@gmail.com
wrote:
On May 25, 2:56 pm, kak...@gmail.com kak...@gmail.com wrote
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 stefan...@behnel.de 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( )
time.sleep(5)
while
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
pt_control_message xmlns=http://demo.com/demo;
cmdReply
sessionList
session
On 28 Μάϊος, 18:45, Jon Clements jon...@googlemail.com wrote:
On 28 May, 16:24, kak...@gmail.com 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: Jakarta Commons-HttpClient/3.1
Host
On May 28, 7:48 pm, Peter Otten __pete...@web.de wrote:
Jon Clements wrote:
On 28 May, 16:24, kak...@gmail.com kak...@gmail.com wrote:
Hi i have the following xml message i want to omit the headers, any
hints?
Assuming the header is separated by a blank line, something like:
list
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
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 j...@castleamber.com wrote:
kak...@gmail.com kak...@gmail.com writes:
I got the following error
--- exception caught here ---
File /usr/lib/python2.6/site-packages/Twisted-10.0.0-py2.6-linux-
x86_64.egg/twisted/internet/selectreactor.py, line 146
On Jun 1, 10:34 am, Stefan Behnel stefan...@behnel.de 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 question.
Stefan
That's exactly
On Jun 1, 11:09 am, John Bokma j...@castleamber.com wrote:
kak...@gmail.com kak...@gmail.com writes:
On Jun 1, 10:34 am, Stefan Behnel stefan...@behnel.de 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
On Jun 1, 11:12 am, kak...@gmail.com kak...@gmail.com wrote:
On Jun 1, 11:09 am, John Bokma j...@castleamber.com wrote:
kak...@gmail.com kak...@gmail.com writes:
On Jun 1, 10:34 am, Stefan Behnel stefan...@behnel.de wrote:
kak...@gmail.com, 01.06.2010 16:00:
how can i fix it, how
On 2 Ιούν, 03:47, John Machin sjmac...@lexicon.net wrote:
On Jun 2, 1:57 am, kak...@gmail.com kak...@gmail.com wrote:
On Jun 1, 11:12 am, kak...@gmail.com kak...@gmail.com wrote:
On Jun 1, 11:09 am, John Bokma j...@castleamber.com wrote:
kak...@gmail.com kak...@gmail.com writes
54 matches
Mail list logo