In python it is quite easy:

import commands

status, output = commands.getstatusoutput("my command")
--------------------

status will be the return code of the command
output will be what the command displayed

-sjh
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to