On 20/12/12 14:25, Ufuk Eskici wrote:
Hello,
I run this command and opens putty:
import os
import subprocess
command = '"c:\Program Files\Putty\putty.exe" -ssh
ufukeskici@10.10.10.10 <mailto:ufukeskici@10.10.10.10> -pw test
subprocess.Popen(command)
But then I want to input new commands to this Putty new window. How can
I do it?
I don't know putty.
But if it reads/writes to stdin/out/error then you can use the options
to Popen as described in the subprocess docs.
If it doesn't use stdin/out etc then its a much bigger problem.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor