Re: Kill an OS process from script (perhaps unix specific)

2008-04-19 Thread Douglas Wells
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > Hi, > I'm trying to run a process from a python script. I need the exit > status of that process but do not care about its output, so until now > was using os.system(). But it turned out that the process often went > into an infinite loo

Kill an OS process from script (perhaps unix specific)

2008-04-19 Thread chengiz
Hi, I'm trying to run a process from a python script. I need the exit status of that process but do not care about its output, so until now was using os.system(). But it turned out that the process often went into an infinite loop, so I wrote a SIGALRM handler. Unfortunately the code I came up with