Pergunta

I am looking for a way to open command prompt of remote PC by using Python. In this process I came only upto open a command prompt from Python and other code is connecting to a windows remote PC but how to combine these two and opening the command prompt of remote PC ?

Simply, I want to send some arguments/commands to remote PC command prompt.

Thank you.

Nenhuma solução correta

Outras dicas

First you need to install SSH on the remote PC's. You test the connection and make sure you are able to login. Google can help if you've not setup ssh before.

Then you can create a python script locally to execute commands over the ssh connection.

You'll probably want to look at either

Fabric -> http://docs.fabfile.org/en/1.8/

or

Paramiko -> http://www.paramiko.org/

Which will be able to run your commands.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top