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 -pw > test > subprocess.Popen(command) > > But then I want to input new commands to this Putty new window. How can I do > it? >
Do you need to control Putty or just SSH to another computer? If all you need to SSH then I would recommend using a 3rd party module such as Fabric (which relies on Paramiko). Those modules will simply SSH significantly. They are Python 2.x but you should be able to use Paramiko in 3.x except for SFTP. This link might help to install Paramiko if you are using Python 3. https://github.com/paramiko/paramiko/issues/16 If you need to control Putty specifically then I cannot help. Ramit This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor