monitoring/restarting an application

2009-03-05 Thread Ghirai
) 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.python.org/mailman

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 ghi...@ghirai.com 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 those as well as supervisor

Re: urllib getting SSL certificate info

2008-08-19 Thread Ghirai
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-19 Thread Ghirai
', '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

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.org/mailman

Re: Newbie: Keep TCP socket open

2008-05-19 Thread Ghirai
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: 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 the moment sadly. Alan Are you sure there's no firewall

Re: [OT] minimalist web server

2007-12-02 Thread ghirai
).serve_forever() Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

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: 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? The answer depends on your chosen platform. Python

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.python.org

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

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/mailman/listinfo