On Thu, 19 Nov 2009 06:21:09 -0800, Bas wrote:
> Below is the script I use to automatically kill firefox if it is not
> behaving, maybe you are looking for something similar.
> lines = os.popen('ps ax|grep firefox').readlines()
This isn't robust. It will kill any process with "firefox" anywhere
Jean-Michel Pichavant writes:
> Hi python fellows,
>
> I'm currently inspecting my Linux process list, trying to parse it in
> order to get one particular process (and kill it).
> I ran into an annoying issue:
> The stdout display is somehow truncated (maybe a terminal length
> issue, I don't kno
On Nov 18, 12:25 pm, Jean-Michel Pichavant
wrote:
> Hi python fellows,
>
> I'm currently inspecting my Linux process list, trying to parse it in
> order to get one particular process (and kill it).
> I ran into an annoying issue:
> The stdout display is somehow truncated (maybe a terminal length i
Nobody wrote:
On Wed, 18 Nov 2009 12:25:14 +0100, Jean-Michel Pichavant wrote:
I'm currently inspecting my Linux process list, trying to parse it in
order to get one particular process (and kill it).
I ran into an annoying issue:
The stdout display is somehow truncated (maybe a terminal len
On Wed, 18 Nov 2009 12:25:14 +0100, Jean-Michel Pichavant wrote:
> I'm currently inspecting my Linux process list, trying to parse it in
> order to get one particular process (and kill it).
> I ran into an annoying issue:
> The stdout display is somehow truncated (maybe a terminal length issue,
On Nov 18, 4:14 pm, Jon Clements wrote:
> On Nov 18, 11:25 am, Jean-Michel Pichavant
> wrote:
>
>
>
> > Hi python fellows,
>
> > I'm currently inspecting my Linux process list, trying to parse it in
> > order to get one particular process (and kill it).
> > I ran into an annoying issue:
> > The s
On Nov 18, 11:25 am, Jean-Michel Pichavant
wrote:
> Hi python fellows,
>
> I'm currently inspecting my Linux process list, trying to parse it in
> order to get one particular process (and kill it).
> I ran into an annoying issue:
> The stdout display is somehow truncated (maybe a terminal length i
Hi python fellows,
I'm currently inspecting my Linux process list, trying to parse it in
order to get one particular process (and kill it).
I ran into an annoying issue:
The stdout display is somehow truncated (maybe a terminal length issue,
I don't know), breaking my parsing.
import subproc