delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/13/13:19:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4C657EAC.8090006@gmail.com>
Date: Fri, 13 Aug 2010 10:19:40 -0700
From: Daniel Colascione <dan DOT colascione AT gmail DOT com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: spc DOT for DOT nbc AT gmail DOT com
Subject: Re: Mounting shares that require passwords
References: <AANLkTinR+8hW_en3Em4Jga-hY-u6uMqw2_jYOQxwu8Mx AT mail DOT gmail DOT com> <4C6572C4 DOT 4090501 AT bopp DOT net> <AANLkTimfjcHK1ARo33zu0xa7hR2rzwyzS=TnTGFva_3m AT mail DOT gmail DOT com> <20100813170706 DOT GA19281 AT ednor DOT casa DOT cgf DOT cx> <AANLkTikJA86cmgieH0--3BKYzonUv3nhOyGm_Wtjra8H AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTikJA86cmgieH0--3BKYzonUv3nhOyGm_Wtjra8H@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 8/13/10 10:13 AM, Steven Collins wrote:
> I'm attempting to execute "net use" from the bash command prompt in an
> xterm session that was started via the "XWin Server" menu item. The
> 'ps' command lists the TTY as "con", so I wouldn't expect to be using
> a pty. Am I? If so, is there a work around for the problem? I have
> noticed that even if I start a cmd session from cygwin that the
> problem persists.

Anything that's not a real Windows console window is a pty as far as
Cygwin is concerned, and a plain pipe as far as win32 is concerned.
Starting a cmd doesn't fix the issue because that cmd is still talking
to what it sees as a pipe.

You can just start a new console window for "net use" with cygstart; I
believe specifying the password on the command line should be fine.
Another option is trying the conin program, which uses black magic to
give a program a real console for input.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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