On Tue, 28 Nov 2006 08:30:03 -0600, Nick Craig-Wood
<[EMAIL PROTECTED]> wrote:
>>  import os,sys,time
>>  print "pre:", os.getpid()
>>  sys.stdout = open(os.devnull, 'w')
>>  print "post:", os.getpid()
>>  time.sleep(60)
>> 
>>  (Granted, I'm on WinXP; I also suspect the original stdout is still open
>>  in the background, maybe dualled with stderr?)
>
>Yes that is the point - the original stdout is still open.
>
>I don't think this discussion is relevant to windows though - windows
>has its own way of making daemons.

Thanks everyone. I'll see if the Python script runs OK in an Asterisk
PBX on Linux.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to