[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
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
[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
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
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().
>
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
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
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