cgywin ssh script help
Results 1 to 2 of 2

Thread: cgywin ssh script help

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    18

    cgywin ssh script help

    Hello all,

    I'm sorta new with cgywin and needed some help with a problem.

    I want to write a script that allows me to shutdown every computer in my house from the command line of my laptop. The script is easy enough but getting it executed on the remote computers is the problem. I checked windows and found
    out about RSH but that seems to have gone extinct around NT4.0. From there I went to ssh for a remote connection to the computers. That has worked up until the point I try and run the script remotely. When I access the C: drive on the remote computer where I have the script stored I type ./xxx.bat.

    The computer then reports the script to the C prompt and then tells me
    "incorrect function"

    Can anyone tell me what I'm missing here?

    FN

  2. #2
    Senior Member WolfeTone's Avatar
    Join Date
    Jun 2007
    Location
    Ireland
    Posts
    197
    shutdown /s /m \\192.168.x.x /t 0 /f /c "System Shutting Down"

    Just use above along with a loop for each IP Address and you are sorted as long as you run it as admin.

Similar Threads

  1. Http referer Check Script
    By rOCk-MaStEr in forum Web Development
    Replies: 15
    Last Post: December 11th, 2004, 02:21 AM
  2. unix useradd script help please.
    By deftones12 in forum Programming Security
    Replies: 7
    Last Post: June 22nd, 2004, 06:43 PM
  3. Tcp/ip
    By gore in forum Newbie Security Questions
    Replies: 11
    Last Post: December 29th, 2003, 07:01 AM
  4. Using Perl on the Command Line
    By roswell1329 in forum Other Tutorials Forum
    Replies: 0
    Last Post: December 18th, 2002, 07:16 AM
  5. bash script for md5 binary integrity check
    By slackwarelinux in forum IDS & Scanner Discussions
    Replies: 1
    Last Post: July 23rd, 2002, 06:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides