Re: monitoring/restarting an application

2009-03-05 Thread Ghirai
On 05 Mar 2009 07:44:44 -0800 Paul Rubin <http://phr...@nospam.invalid> wrote: > Ghirai writes: > > Does this sound reasonable, or is there an easier way? > > Use something like daemontools or upstart. Don't roll your own. > -- Alright, i'll have a look at t

monitoring/restarting an application

2009-03-05 Thread Ghirai
(list) < x, and if it is, then start a new process (with os.spawnv?) and add it to the list. Also in the list i'd keep PIDs and some sort of started-timestamp, so i know which to kill. Does this sound reasonable, or is there an easier way? Thanks. -- Regards, Ghirai. -- http://mail.pytho

Re: urllib getting SSL certificate info

2008-08-19 Thread Ghirai
hen I run this, I get: > > [('C', 'ZA'), ('O', 'Thawte Consulting (Pty) Ltd.'), ('CN', 'Thawte SGC > CA')] [('C', 'US'), ('ST', 'California'), ('L', 'Mountain View'), ('O', > 'Google Inc'), ('CN', 'www.google.com')] > > Thanks, i'll go with PyOpenSSL, it seems easier, and has decent docs :) -- Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib getting SSL certificate info

2008-08-19 Thread Ghirai
Would you mind sharing some code? The module is pretty ugly and on top has no docs whatsoever; got tired of reading the source... Thanks. -- Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib getting SSL certificate info

2008-08-16 Thread Ghirai
On Saturday 16 August 2008 12:16:14 Fredrik Lundh wrote: > Ghirai wrote: > > Using urllib, is there any way i could access some info about the SSL > > certificate (when opening a https url)? > > > > I'm really interested in the fingerprint. > > > >

urllib getting SSL certificate info

2008-08-16 Thread Ghirai
Hello list, Using urllib, is there any way i could access some info about the SSL certificate (when opening a https url)? I'm really interested in the fingerprint. I haven't been able to find anything so far. Any help is appreciated. -- Regards, Ghirai. -- http://mail.python.o

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Ghirai
On Mon, 19 May 2008 23:50:50 +0100 "Alan Wright" <[EMAIL PROTECTED]> wrote: > Ghirai, > Scapy does the same, only it sends RST and not FIN, so still no help > > send(IP(dst="10.1.1.2")/TCP(dport=5,flags="S")) > > Only have windows at t

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Ghirai
ced, that the ports loop back > to 1025 when they hit 5000. > > Any ideas on how to make the list/socket get to around 50K > > TIA > Try to use scapy to send raw empty packets with S flag set. Also use Linux/BSD if you're trying this on Windows. -- Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] minimalist web server

2007-12-02 Thread ghirai
d if there is a security hole in netcat I might be screwed. >> >> Maybe now that I outlined a little more why I need this others can >> come up with more suggestions. >> Running this will start a server on port 80 which will serve files in the current folder: import SimpleHTTPServer import SocketServer SocketServer.TCPServer(("",80),SimpleHTTPServer.SimpleHTTPRequestHandler).serve_forever() Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Re: curses library

2007-08-14 Thread Ghirai
On Tue, 14 Aug 2007 18:27:16 GMT Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-08-14, Ghirai <[EMAIL PROTECTED]> wrote: > > I need to write a console application. > > > > Are there any wrappers around curses/ncurses? > > Or any other similar libraries?

curses library

2007-08-14 Thread Ghirai
Hello list, I need to write a console application. Are there any wrappers around curses/ncurses? Or any other similar libraries? Thanks. -- Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Re: Drawing a graph

2007-08-13 Thread Ghirai
I ended up using matplotlib (http://matplotlib.sourceforge.net). Thanks for the input everyone. -- Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Drawing a graph

2007-08-13 Thread Ghirai
Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any specialized libraries for this, or should i use PIL? Thanks. -- Regards, Ghirai. -- http://mail.pytho

p2p chat framework

2007-04-03 Thread Ghirai
Hello python-list, Are there any p2p chat/filetransfer frameworks/examples floating around? If not, can someone give me some rough directions towards writing my own? Thanks. -- Best regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

p2p chat framework

2007-04-02 Thread Ghirai
Hello python-list, Are there any p2p chat/filetransfer frameworks/examples floating around? If not, can someone give me some rough directions towards writing my own? Thanks. -- Best regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

IDE for wxPython

2007-03-17 Thread Ghirai
Hello python-list, Can anyone suggest an IDE for wxPython? Or an IDE for TkInter? Thanks. -- Best regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Login Form

2007-01-19 Thread Ghirai
Hello python-list, I need to make a login form, if possible without cookies. Can anyone point me in the right direction? Or are there any examples? Thanks. -- Best regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Manually installing PIL

2007-01-07 Thread Ghirai
Hello, My host doesn't have PIL installed, and from what i can tell, they won't install it. Is there any way i can copy the needed files near my python script? I'm using Image, ImageFont, ImageDraw and ImageFilter. Thanks. -- Best regards, Ghirai. -- http://mail.python.org/m