> But i dont know how to pass the "echo t | " in subprocess.check_output while > calling a process. You need to create two subprocess and connect the stdout of the first to the stdin of the 2'nd.
See http://pythonwise.blogspot.com/2008/08/pipe.html for a possible solution. -- http://mail.python.org/mailman/listinfo/python-list