Re: [LAD] Python assistance - threads (my favorite)

2010-10-15 Thread Dominic Sacré
On Fri, Oct 15, 2010 at 12:04 AM, Patrick Shirkey pshir...@boosthardware.com wrote: In a bit of a time crunch. Can anyone tell me how to do this properly? I would like to have a threaded timer to run cmd after 5 seconds. However cmd is normally triggered like this: os.system(cmd) But there

Re: [LAD] Python assistance - threads (my favorite)

2010-10-15 Thread Patrick Shirkey
On Thu, October 14, 2010 4:10 pm, f...@kokkinizita.net wrote: On Thu, Oct 14, 2010 at 03:04:54PM -0700, Patrick Shirkey wrote: In a bit of a time crunch. Can anyone tell me how to do this properly? I would like to have a threaded timer to run cmd after 5 seconds. However cmd is normally

Re: [LAD] Python assistance - threads (my favorite)

2010-10-15 Thread Niels Mayer
Is the program you're calling from popen generating any output on stdin/stdout or waiting for input on stdin? Then there's a good chance it's blocked and nothing happens so consider redirecting stdin/stdout/stderr to /dev/null prior to calling the program out of popen, or read/write the needed

[LAD] Python assistance - threads (my favorite)

2010-10-14 Thread Patrick Shirkey
Hi, In a bit of a time crunch. Can anyone tell me how to do this properly? I would like to have a threaded timer to run cmd after 5 seconds. However cmd is normally triggered like this: os.system(cmd) But there seems to be an issue with calling os.system(cmd) from subprocess.popen.

Re: [LAD] Python assistance - threads (my favorite)

2010-10-14 Thread fons
On Thu, Oct 14, 2010 at 03:04:54PM -0700, Patrick Shirkey wrote: In a bit of a time crunch. Can anyone tell me how to do this properly? I would like to have a threaded timer to run cmd after 5 seconds. However cmd is normally triggered like this: os.system(cmd) But there seems to be an