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 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: <4C6572C4 DOT 4090501 AT bopp DOT net> <20100813170706 DOT GA19281 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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