delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/16/13:12:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Stefan Norberg" <stnor AT sweden DOT hp DOT com>
To: "cygwin" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Openssh port to cygwin
Date: Sun, 16 Jul 2000 19:13:01 +0200
Message-ID: <JOEIICGFEHPPCFAMLANJMEOACAAA.stnor@sweden.hp.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <39711E8A.451C96EA@digisle.net>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

I can't explain why, but when I changed my shell from bash (bash.exe) to ash
(sh.exe) the NT executables ran in the foreground so to speak.

Stefan Norberg

> -----Original Message-----
> From: cygwin-owner AT sources DOT redhat DOT com
> [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of JJ Streicher-Bremer
> Sent: Sunday, July 16, 2000 4:32 AM
> To: cygwin
> Cc: norbert DOT bladt AT usa DOT net
> Subject: Re: Openssh port to cygwin
>
>
> I have been using the b20 and Sergey's port of sshd with great success.
> In my efforts to get openssh running on 1.1.2 I have noticed that the
> net.exe command no longer runs the same way.  Instead of running inside
> the shell (I am using bash) it spawns a separate console for the app.
> This has the effect of making the output inaccessible from the remote
> shell.
>
> I have set CYGWIN to be:
> CYGWIN='tty binmode title strip_title glob ntsec ntea'
>
> I am running Win2K.  I see that the command "net user" spawns a new
> shell, yet "net use" does not.  Have you run into this before?
>
> Any help would be appreciated.
>
> Thanks
> JJ Streicher-Bremer
>
>
> Corinna Vinschen wrote:
> >
> > norbert DOT bladt AT usa DOT net wrote:
> > >
> > > Hello everyone !
> > >
> > > Openssh on NT works very well, unless you are trying to
> > > use /winnt/system32/cmd instead of /bin/sh or
> > > unless you use real NT commands from the sh.
> > >
> > > In this case, no input / output redirection is possible,
> > > neither on UNIX nor - once logged in - on NT.
> > > Using "cygwin-enabled" GNU commands works fine, though.
> > >
> > > Now my questions are:
> > > Is this the intended behaviour ?
> > > If not what can be the reason or - with other words - do
> > > just I see this behaviour or is it the same for everybody else ?
> > >
> > > We really want to execute NT commands like "net use" or
> > > "net stop snmp", etc. from remote UNIX or NT host via ssh.
> > > Is this a bad idea and if yes, why ?
> > > Are there other WORKING solutions for that which are secure ?
> >
> > I'm using nt commands via ssh without problems as far as they
> > are not GUI commands. CLI tools like `net' are working _mostly_
> > fine. Some commands like `sc' sometimes have dubious problems
> > with their output.
> >
> > Try setting the environment variable CYGWIN so that it contains
> > `tty'. This might help.
> >
> > Corinna
> >
> > --
> > Corinna Vinschen
> > Cygwin Developer
> > Cygnus Solutions, a Red Hat company
> >
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>
> --
> ------------------------------
> And root said rm -rf / ......
> 	 and there was nothing
> ------------------------------
>
> *editors note: there were no UNIX
> systems injured in the creation of
> this tagline.
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019