<div dir="ltr">Exactly, its a place holder measure. <div><br></div><div>Currently, I have a shell program like this.</div><div><br></div><div>#!/usr/bin/env bash</div><div>exec "$@"</div><div><br></div><div>Any thoughts how I can put python in there?</div>
<div><br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 1:54 PM, Robert Kern <span dir="ltr"><<a href="mailto:robert.kern@gmail.com" target="_blank">robert.kern@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-04-30 17:38, Dave Angel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/30/2013 12:25 PM, Rita wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I was wondering if it possible to write a python wrapper which will account<br>
my processes. I would like to account for all the children processes (fork)<br>
by looking at their /proc/<pid> info. Such as memory, io, open files,<br>
stats.<br>
<br>
So, instead of me running "/bin/sleep 10", i would like to run it as<br>
"pywrap.py /bin/sleep 10" and it will do an exec /bin/sleep 10 and do a<br>
periodic snapshot for whats in /proc/<pid>/stats.<br>
</blockquote>
<br>
I only understood a quarter of that. But if you want to sleep, why not just<br>
call time.sleep ?<br>
</blockquote>
<br></div>
I think that was just a placeholder example, not the program he actually wants to measure.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Robert Kern<br>
<br>
"I have come to believe that the whole world is an enigma, a harmless enigma<br>
that is made terrible by our own mad attempt to interpret it as though it had<br>
an underlying truth."<br>
-- Umberto Eco<br>
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>--- <span>Get your facts first, then you can distort them as you please.</span>--
</div>