On 16 Dec 2005 08:45:01 -0800, Rob Cowie <[EMAIL PROTECTED]> wrote:
> Excellent... just the thing I was looking for. Thanks.
>
> Does anyone know of a unix app that could be used to monitor the
> duration of processes etc.?
If you have control over starting the program then "time" will probaby suf
from another and get the result. more info about the datetime module: http://docs.python.org/lib/module-datetime.html
cheers! =]
Sent from the Python - python-list forum at Nabble.com:
Re: Invoking Unix commands from a Python app
--
http://mail.python.org/mailman/listinfo/python-list
"Rob Cowie" schrieb
> Excellent... just the thing I was looking for. Thanks.
>
> Does anyone know of a unix app that could be used to
> monitor the duration of processes etc.?
>
man -k account showed me (among others):
acct (2) - switch process accounting on or off
acct (5)
Excellent... just the thing I was looking for. Thanks.
Does anyone know of a unix app that could be used to monitor the
duration of processes etc.?
Would 'top' do the trick?
Rob C
--
http://mail.python.org/mailman/listinfo/python-list
Rob Cowie enlightened us with:
> Ok, I know see that os.spawnl() will suffice. However, how do I
> retrieve the output of the command.
Apparently, os.spawnl() didn't suffice. Check out the popen2 module
and Popen* classes.
Sybren
--
The problem with the world is stupidity. Not saying there shoul
Ok, I know see that os.spawnl() will suffice. However, how do I
retrieve the output of the command.
For example,
import os
os.spawnl(os.P_WAIT, '/bin/date')
Successfully executes the 'date' app, but I am unaware of how to get
its output
--
http://mail.python.org/mailman/listinfo/python-lis