Networking Forums

Networking Forums > Computer Networking > Linux Networking > Script on remote shut the windows pc from Linux

Reply
Thread Tools Display Modes

Script on remote shut the windows pc from Linux

 
 
diffuser78@gmail.com
Guest
Posts: n/a

 
      05-16-2006, 12:58 PM
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 ??

Every help is appreciated.

 
Reply With Quote
 
 
 
 
diffuser78@gmail.com
Guest
Posts: n/a

 
      05-16-2006, 02:06 PM
I found the right way which is to have them in one line to execute
remotely.


ssh username@IP_ADDR shutdown -s


Hope this help others sometimes.

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      05-16-2006, 09:19 PM
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com

> I found the right way which is to have them in one line to execute
> remotely.


.... and if you quoted the relevant portions of what you're responding to,
people might have some idea of what it is you're talking about.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux remote script zabutimaxim@gmail.com Linux Networking 6 08-27-2007 10:26 PM
Remote assist with linux and windows platform sthowes@hotmail.com Linux Networking 5 09-19-2006 05:35 PM
Remote login to Linux from Windows 98 Larry Linux Networking 5 09-09-2004 05:51 PM
linux script from windows Tom Spencer Linux Networking 2 04-15-2004 01:19 PM
Windows won't shut down after Ethernet install Pam Windows Networking 4 01-05-2004 05:40 PM



1 2 3 4 5 6 7 8 9 10 11