Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <14737.9363.436534.223595@jupiter.akutech.de>
Date: Wed, 9 Aug 2000 11:29:55 +0200 (MDT)
From: Ralf Fassel <ralf@akutech.de>
To: cygwin <cygwin@sources.redhat.com>
Subject: Re: cygwin-1.1.4: problems with remote commands
In-Reply-To: <39911345.873F2D0A@cygnus.com>
References: <20000809063835.13290.qmail@nwcst289.netaddress.usa.net>
	<39911345.873F2D0A@cygnus.com>
Organization: Akustik Technologie Goettingen (ATG)

* Corinna Vinschen
| > Ralf Fassel wrote:
| > > - the `net use' command is not able to read a password.
| 
| The reason here is that it's a windows tool. Don't know how they
| read a password but they seem to rely on specific console
| properties.

Probably to turn off echoing or something like that.  I resorted to
the following hack in my .bash_login:

    echo -n "enter passwd for UNIX_HOME: "
    stty -echo
    read pw
    stty echo
    echo
    if test -n "$pw" ; then
	net use '*' '\\server\service' "$pw" /PERSISTENT:NO
    fi

Plus some more hacks to automagically /delete those mounts on logout
(send mail if interested).
    
| [ssh works, output is visible]

Yes, that is true for interactive sessions.  The `net' command gives
output there, in fact I pipe it through `awk' to get the drive name
which was just allocated, and add that to .bash_logout to disconnect
it.  Works fine so far.

Regards
R'
-- 
Losers spin, winners grin.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

