I would like to redirect the output from os.system to a variable, but\nam having trouble. I tried using os.popen(..).read() ...but that\ndoesn't give me exactly what i want.\n\n...this is windows by the way.\n\nFor example:\ntmp = os.popen("hostname").read()\n\n....works as expected.\n\nhowever,\n\ntmp = os.popen("cmd").read()\n....i would like to have access to the cmd process...i.e. enter commands\nlike a normal command line. os.system() allows this, but i dont want\noutput to the screen..i wanna store it to a variable. then send\ncontent of variable elsewhere, receive more input and submit it.\nalmost emulate the windows command prompt.\n\nany ideas?