Hi there, i am using this code to send an "cat > ThisIsMyUrl" with popen. Of cos cat now waits for the CTRL+D command. How can i send this command ?
def console_command(cmd): print cmd console = os.popen(cmd,"r") output = console.read() console.close() return output command="cat > " + working_dir + "/" + subdir + "www.thisismyurl.com" console_command(command) Thank you. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor