Re: ssh popen stalling on password redirect output?

2005-07-16 Thread Cantankerous Old Git
[EMAIL PROTECTED] wrote: > In general, it is good idea to use expect kind of tool to deal with > interactive programs like ssh. You may try using pexpect > (http://pexpect.sourceforge.net). > I tried tha once (on Solaris) and found that ssh could tell that pexpect wasn't a real tty and refused t

Re: question about deleting records from mysql

2005-07-27 Thread Cantankerous Old Git
nephish wrote: > Man, thanks for the link. and the tip. i am testing > the db.commit() and printing the doc right now. > thanks again. If it's any help, using cursor.execute("set autocommit = 1") before doing anything else works nicely unless you actually need transactions. The Cog -- ht

Re: Making a timebomb

2005-08-05 Thread Cantankerous Old Git
[EMAIL PROTECTED] wrote: > I have a server that right now runs infinitely. I'd like to make it > die after some amount of time. I was thinking of having a timebomb > thread that starts when the server starts. The timebomb sits, and > sleeps for the specified timeout period (e.g., 5 hours), then

Re: Making a timebomb

2005-08-07 Thread Cantankerous Old Git
Peter Hansen wrote: > Cantankerous Old Git wrote: > >> [EMAIL PROTECTED] wrote: >> >>> I have a server that right now runs infinitely. I'd like to make it >>> die after some amount of time. >> >> >> The proper way to do it is to

Re: Making a timebomb

2005-08-08 Thread Cantankerous Old Git
Peter Hansen wrote: > Cantankerous Old Git wrote: > >> Peter Hansen wrote: >> >>> Cantankerous Old Git wrote: >>> >>>> The dirty way, which can leave corrupt half-written files and other >>>> nasties, is something like sys.exit(). >

Re: how to write thread-safe module ? and pytz

2005-08-11 Thread Cantankerous Old Git
Daniel Dittmar wrote: > Dictionaries (and probably most other Python types that are implemented > in C) are inherently thread safe. That sounds like a dangerous assumption to me. Are you relying on the Global Interpreter Lock? Is is guaranteed? Does that safety transfer to Jython? How can I tel

Windows message pump problems

2005-08-16 Thread Cantankerous Old Git
I am trying to write a program that I hope to get working as a command-line app to start with, and then eventually use a windows service wrapper to call it as a service. Its purpose is to attach to an already running (not ours) service using an API DLL, where it will do houskeeping and monitori

Re: Windows message pump problems

2005-08-18 Thread Cantankerous Old Git
Neil Hodgson wrote: > Cantankerous Old Git: > >> Problem 1: >> If I have another thread call DestroyWindow after a delay, it gets an >> error "permission denied". I really can't see why. > > > http://msdn.microsoft.com/library/default.asp?url