Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44553
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin.stu.neva.ru!border2.hitnews.com!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rmorgan466@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.015 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'exec': 0.09; 'facts': 0.09; 'received:209.85.219': 0.09; 'skip:/ 10': 0.09; 'subject:process': 0.09; 'wrapper': 0.09; 'python': 0.11; 'processes.': 0.16; 'subject:python': 0.16; '---': 0.24; 'first,': 0.26; 'wondering': 0.29; 'message-id:@mail.gmail.com': 0.30; 'info.': 0.31; 'run': 0.32; 'open': 0.33; 'running': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'possible': 0.36; 'hi,': 0.36; 'so,': 0.37; 'received:209': 0.37; 'skip:& 10': 0.38; '8bit%:4': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'such': 0.63; 'account': 0.65; 'snapshot': 0.84 |
| 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=gOHgaxpHjDFNUpA8LDBiiqTtM2uZb2dCvhVqlKufwNg=; b=dyqnPUgGZA67MOSVvlsBpQBFII+2YymeRnh2tY/MPwTI4zQDl5zcAtzB392GPo+qnZ bEhoz2HEF3fLtknWR4MavAsjvTTDhhGiKLW0mlDIJXYAQ0RPMlm97nNB5qp3Nr8KG47X pLq6XS5K/v7tKy0CTmhRHsKfE8FdeHNNG5AGCoDyeZF6zb8MTnXLmxsnMc6QGLItnVvI ywEJPsBQ56CTMno5DKSo0IpuMKxKgY4OvgK4xcoryXkgOYLN2lw7/Sd7pr9WnzJVh6mP GXU15mxqrzDapDK4+XX5mG0Sxn6xq0K5n22MuILTWlCliYl+ou5EN32vb8FRJRQIZV5P SPuw== |
| MIME-Version | 1.0 |
| X-Received | by 10.182.44.165 with SMTP id f5mr2942527obm.26.1367339141423; Tue, 30 Apr 2013 09:25:41 -0700 (PDT) |
| Date | Tue, 30 Apr 2013 12:25:41 -0400 |
| Subject | python process accounting |
| From | Rita <rmorgan466@gmail.com> |
| To | python-list@python.org |
| Content-Type | multipart/alternative; boundary=001a11c2eba0cfe70604db967369 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1186.1367339150.3114.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1367339150 news.xs4all.nl 15868 [2001:888:2000:d::a6]:42456 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:44553 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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/<pid> info. Such as memory, io, open files, stats. So, instead of me running "/bin/sleep 10", i would like to run it as "pywrap.py /bin/sleep 10" and it will do an exec /bin/sleep 10 and do a periodic snapshot for whats in /proc/<pid>/stats. -- --- Get your facts first, then you can distort them as you please.--
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
python process accounting Rita <rmorgan466@gmail.com> - 2013-04-30 12:25 -0400
csiph-web