delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/05/13:42:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: "bash -c" inquery
Date: Mon, 05 May 2003 10:15:56 -0700
Lines: 18
Message-ID: <3EB69C4C.2070004@cotagesoft.com>
References: <000901c3131b$d5f2f4e0$193c82a4 AT tun DOT st DOT com> <00ab01c3131d$b55ebcd0$492c86d9 AT ellixia>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401
X-Accept-Language: en-us, en
In-Reply-To: <00ab01c3131d$b55ebcd0$492c86d9@ellixia>

Elfyn McBratney wrote:

>>why this command did not work correctly ??
>>c:\cygwin\bin\bash --login -i -c "net use \\\\view\\MCDT1_ST72521"

> Should be '\\server\resource' when called from within Windows.

Actually, in this case, he needs to go the other way: one set of 
back-slashes is eaten when the bash -c command is parsed above, and 
another set of backslashes is eaten when bash actually executes the 
command, so try:

   bash --login -i -c "net use \\\\\\\\view\\\\MCDT1_ST72521"

(Seriously!)
--
Shankar.



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

- Raw text -


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