public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: Peter@krum.name, cygwin@cygwin.com
Cc: "Peter J. Krum" <peterk2003@gmail.com>
Subject: Re: Remotely restart a windows machine
Date: Fri, 25 Sep 2020 13:49:25 -0400	[thread overview]
Message-ID: <fc541bd0-c9db-3cd0-99e2-fa0edb01fb40@cs.umass.edu> (raw)
In-Reply-To: <CABY86rYS-rL+D4DJnVWxzzKJhmnyqRbRe9DAY8h49J8xhjK2vQ@mail.gmail.com>

On 9/25/2020 1:45 PM, Peter J. Krum via Cygwin wrote:
> Oh OK thanks didn't realize it was calling the windows commands....
> 
> 
> 
> 
> On Fri, Sep 25, 2020 at 10:28 AM Peter J. Krum <peterk2003@gmail.com> wrote:
> 
>> The syntax of this command is:
>>
>> NET
>>      [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
>>        HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
>>        STATISTICS | STOP | TIME | USE | USER | VIEW ]
>>
>> On Fri, Sep 25, 2020 at 9:32 AM Peter J. Krum <peterk2003@gmail.com>
>> wrote:
>>
>>> I used this command on ubuntu:
>>> net rpc shutdown -r -f -t 30  -I 123.123.123.123 -U user:pass
>>>
>>> What would be the equivalent in CYGWIN?

Just to make sure we understand each other ...

"net" on Linux is a Linux command used for managing Samba shares, etc.

"net" on Windows is a Windows program that comes with the OS.  If it's on the user's path under 
Cygwin (normally it would tend to be, I believe), then typing "net" under Cygwin will invoke it. 
But it's quite a different program from the Linux "net"!

Best wishes - EM

      reply	other threads:[~2020-09-25 17:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25 13:32 Peter J. Krum
2020-09-25 14:23 ` john doe
2020-09-25 14:28 ` Peter J. Krum
2020-09-25 14:36   ` john doe
2020-09-25 14:57     ` Eliot Moss
2020-09-27 21:45       ` Andrey Repin
2020-09-27 23:24         ` Eliot Moss
2020-09-28  4:47           ` Mark Geisert
2020-09-29 15:56             ` Stephen Carrier
2020-09-25 17:45   ` Peter J. Krum
2020-09-25 17:49     ` Eliot Moss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc541bd0-c9db-3cd0-99e2-fa0edb01fb40@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=Peter@krum.name \
    --cc=cygwin@cygwin.com \
    --cc=peterk2003@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).