the commands module is perfect for this job, more information about it in here: http://docs.python.org/lib/module-commands.html

oh, you could use the datetime module to get the time before the execution of the program and after the termini of the program, with theses times you can subtract one 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

Reply via email to