Re: python process accounting

2013-04-30 Thread Giampaolo Rodola'
2013/4/30 Rita : > Hi, > > I was wondering if it possible to write a python wrapper which will account > my processes. I would like to account for all the children processes (fork) > by looking at their /proc/ info. Such as memory, io, open files, stats. > > So, instead of me running "/bin/sleep 10

Re: python process accounting

2013-04-30 Thread Robert Kern
On 2013-04-30 17:25, Rita wrote: Hi, I was wondering if it possible to write a python wrapper which will account my processes. I would like to account for all the children processes (fork) by looking at their /proc/ info. Such as memory, io, open files, stats. So, instead of me running "/bin/sl

Re: python process accounting

2013-04-30 Thread Rita
Exactly, its a place holder measure. Currently, I have a shell program like this. #!/usr/bin/env bash exec "$@" Any thoughts how I can put python in there? On Tue, Apr 30, 2013 at 1:54 PM, Robert Kern wrote: > On 2013-04-30 17:38, Dave Angel wrote: > >> On 04/30/2013 12:25 PM, Rita wrote:

Re: python process accounting

2013-04-30 Thread Robert Kern
On 2013-04-30 17:38, Dave Angel wrote: On 04/30/2013 12:25 PM, Rita wrote: Hi, I was wondering if it possible to write a python wrapper which will account my processes. I would like to account for all the children processes (fork) by looking at their /proc/ info. Such as memory, io, open files,

Re: python process accounting

2013-04-30 Thread Dave Angel
On 04/30/2013 12:38 PM, Dave Angel wrote: Oops, a typo. See below. On 04/30/2013 12:25 PM, Rita wrote: Hi, I was wondering if it possible to write a python wrapper which will account my processes. I would like to account for all the children processes (fork) by looking at their /proc/ info.

Re: python process accounting

2013-04-30 Thread Dave Angel
On 04/30/2013 12:25 PM, Rita wrote: Hi, I was wondering if it possible to write a python wrapper which will account my processes. I would like to account for all the children processes (fork) by looking at their /proc/ info. Such as memory, io, open files, stats. So, instead of me running "/bin

python process accounting

2013-04-30 Thread Rita
Hi, I was wondering if it possible to write a python wrapper which will account my processes. I would like to account for all the children processes (fork) by looking at their /proc/ info. Such as memory, io, open files, stats. So, instead of me running "/bin/sleep 10", i would like to run it as