D
diffuser78
I am a newbie in Python and want your help in writing python script.
I have to remotely shut the windows px from linux box. I run OpenSSH on
windows PC. I remotely connect it from Linux box using
.....
ssh Admin@IP_ADDR # connects me fine now without problems
(LOCAL)
Next, I wrote a script that would log me in and also shut the windows
pc down, so I wrote a script
ssh Admin@IP_ADDR # connects me fine now without problems (LOCAL)
shutdown -s # This is a windows command (REMOTE)
Now, when I run this script, it successfully logs me into the windows
box but doesn't run the second part of the script which is to shut down
the windows PC. Can you please tell me why ??
Is there a way using Python script to perform this operation ?
Every help is appreciated.
I have to remotely shut the windows px from linux box. I run OpenSSH on
windows PC. I remotely connect it from Linux box using
.....
ssh Admin@IP_ADDR # connects me fine now without problems
(LOCAL)
Next, I wrote a script that would log me in and also shut the windows
pc down, so I wrote a script
ssh Admin@IP_ADDR # connects me fine now without problems (LOCAL)
shutdown -s # This is a windows command (REMOTE)
Now, when I run this script, it successfully logs me into the windows
box but doesn't run the second part of the script which is to shut down
the windows PC. Can you please tell me why ??
Is there a way using Python script to perform this operation ?
Every help is appreciated.