Angus Leeming wrote:
> Any clues?

Answering myself again (bad habit, I know)...

def run_command(cmd):
    handle = os.popen(cmd, 'r')
    cmd_stdout = ""
    cmd_stdout = string.join(handle.readlines())
    cmd_status = handle.close()

    return cmd_status, cmd_stdout


-- 
Angus

Reply via email to