Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bash': 0.07; 'exec': 0.07; 'wrapper': 0.07; 'python': 0.09; 'executes': 0.09; 'facts': 0.09; 'subject:process': 0.09; '"$@"': 0.16; 'memory': 0.18; '---': 0.26; 'first,': 0.27; 'skip:# 10': 0.27; 'message- id:@mail.gmail.com': 0.27; 'this?': 0.28; 'skip:& 10': 0.29; 'skip:l 40': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'program,': 0.34; 'received:google.com': 0.34; 'skip:l 30': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'your': 0.60; 'export': 0.62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=h3oFRGdoYhpkqhvTZQ/GWM/6zeHDz3aR48ZaE3fNFXU=; b=yciXq9X6MoVoP4kG6czbScqDGftU9epnRjb1PwPfpFK4vqVDZ9BeU/xyLRYnXGMXZt qmihSVKSDzeMuXAZZbceUntCFqAEWbbFhD2BQS3jkDJiNBBq+lu7vQWaPam278aC8Okj M6Uce9wvJsgjPdJ7immHmbxVtff6we+YNNan+7oTp6K4P+hh08XcUNuIxgptkIZ9ZdGB jrheVDPhZA09LJW8txLzFJ7NCe+MXbvRxcblKOmnu4+E/YS3CB/q+nOfLN7NK9uBKZ6w 7Y7YvG71GGyUZz8CJhpWzZnmJzAwg93MoBShqypU6AadyPkySC4KA/zfNn1dJyTl1mfX HAtA== MIME-Version: 1.0 X-Received: by 10.60.27.169 with SMTP id u9mr3843609oeg.138.1360326753324; Fri, 08 Feb 2013 04:32:33 -0800 (PST) Date: Fri, 8 Feb 2013 07:32:33 -0500 Subject: children process From: Rita To: python-list@python.org Content-Type: multipart/alternative; boundary=e89a8fb20174e9107504d535c010 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360326756 news.xs4all.nl 6946 [2001:888:2000:d::a6]:32939 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38445 --e89a8fb20174e9107504d535c010 Content-Type: text/plain; charset=ISO-8859-1 hi, I currently have a bash wrapper which executes a program, something like this #!/usr/bin/env bash export LD_LIBRARY_PATH=/foo:$LD_LIBRARY_PATH exec "$@" I would like to have a python process which will do process accounting for all children, so if a process starts, I would like to get all the children's memory (/proc//stat). Is there a way to do this? -- --- Get your facts first, then you can distort them as you please.-- --e89a8fb20174e9107504d535c010 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi,

I currently have a bash wrapper which executes a pro= gram, something like this

#!/usr/bin/env bash
export LD_LIBRARY_PATH=3D/foo:$LD_LIBRARY_PATH
exec "$= @"

I would like to have a python process which will do pro= cess accounting for all children, so if a process starts, I would like to g= et all the children's memory =A0(/proc/<ALL Children>/stat).

Is there a way to do this?=A0

= --
--- Get your facts first, then you can distort them as you ple= ase.--
--e89a8fb20174e9107504d535c010--