Re: epoch seconds from a datetime

2008-08-28 Thread Richard Rossel
On 28 ago, 14:25, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > On Thu, Aug 28, 2008 at 10:18 AM, Richard Rossel <[EMAIL PROTECTED]> wrote: > > Hi friends, > > I need a little help here, I 'm stuck with epoch calculation issue. > > I have this

epoch seconds from a datetime

2008-08-28 Thread Richard Rossel
Hi friends, I need a little help here, I 'm stuck with epoch calculation issue. I have this datetime: date_new = datetime(*time.strptime('20080101T00','%Y%m%dT%H%M%S') [0:6]) This date_new is in UTC Now I need to know the seconds since epoch of this new date, so I run this: seconds = int(time.m

Re: how to kill a process

2007-06-12 Thread Richard Rossel
On 12 jun, 13:24, "Evan Klitzke" <[EMAIL PROTECTED]> wrote: > On 6/12/07, Richard Rossel <[EMAIL PROTECTED]> wrote: > > > But when the python code is called to kill the created process, the > > process is left in a zombie state. > > If the process is l

how to kill a process

2007-06-12 Thread Richard Rossel
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the subprocess.Popen call, and afterwards, (using a web request) the python code uses the PID of the previously created