delorie.com/archives/browse.cgi | search |
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 |
MIME-Version: | 1.0 |
Message-ID: | <14737.9363.436534.223595@jupiter.akutech.de> |
Date: | Wed, 9 Aug 2000 11:29:55 +0200 (MDT) |
From: | Ralf Fassel <ralf AT akutech DOT de> |
To: | cygwin <cygwin AT sources DOT redhat DOT com> |
Subject: | Re: cygwin-1.1.4: problems with remote commands |
In-Reply-To: | <39911345.873F2D0A@cygnus.com> |
References: | <20000809063835 DOT 13290 DOT qmail AT nwcst289 DOT netaddress DOT usa DOT net> |
<39911345 DOT 873F2D0A AT cygnus DOT 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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |