delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/06/17:37:50

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=
hcz6FnIJe8Z5AvVRsVtZkL89a68t1nFnhwDxSv1PkQ6Z+DswRM1rzcPOJ4J5vDrd
rscz6G0tNB4LHw16xGB0yYf8IZETtHmjSQ2o1ffUCs6u8c6jBFgyRpKsFLs6I/Yi
duK8+mbpj8UlkxUZXZ9isCzcO4YnUHtFKbQvmSQinis=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:cc:content-type; s=default; bh=LBTqK
fV1bKuS5a82TOAiHO7oGlM=; b=v6waamzIyEYRYyPPBvdmYl3erxawYbHZySg3U
RMlW2wREarN8YjM+7yofiyNRVB5Ttmn2vpINhSyPU46GdtS5lpeJ9LoAcgKnbFGX
MVazEBAmQaWQ8mcAEhl/ozAJnILh1lQt2n1Dry38Ix4mgGJKZ+KcvWF3Lq9uvbBe
oZPx9M=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-lb0-f172.google.com
MIME-Version: 1.0
X-Received: by 10.152.22.102 with SMTP id c6mr7597051laf.27.1391726251033; Thu, 06 Feb 2014 14:37:31 -0800 (PST)
In-Reply-To: <alpine.LFD.2.03.1402061158330.24343@KarmannGhia.org>
References: <1737153647 DOT 9966666 DOT 1391712802938 DOT JavaMail DOT root AT ptd DOT net> <alpine DOT LFD DOT 2 DOT 03 DOT 1402061158330 DOT 24343 AT KarmannGhia DOT org>
Date: Thu, 6 Feb 2014 17:37:30 -0500
Message-ID: <CAEotdwkNuNhGS+Kf2ztAQW=pDPoqo610c35iOU2x9fjBEfURnw@mail.gmail.com>
Subject: Re: Newbie Cygdrive questions
From: David Conrad <DavidConrad AT acm DOT org>
To: cygwin AT cygwin DOT com
Cc: mrushton <mrushton AT ptd DOT net>
X-IsSubscribed: yes

It may be useful to know, if you do not already, that the cygpath
utility can be used to convert between Windows and Unix paths.

cygpath -u X:/INBOUND/CWSCRIPTS/myscript.sh

will give you /cygdrive/x/INBOUND/CWSCRIPTS/myscript.sh, and

cygpath -w /cygdrive/x/INBOUND/CWSCRIPTS/myscript.sh

will give you X:\INBOUND\CWSCRIPTS\myscript.sh

You can also use cygpath -m if you prefer forward slashes, even in
your Windows paths.


On Thu, Feb 6, 2014 at 3:03 PM, Richard <richard AT karmannghia DOT org> wrote:
>
> On Thu, 6 Feb 2014, mrushton wrote:
>>
>>
>> To access this shared X drive under Cygwin it seems I have to do this :
>>
>> /cygdrive/X/INBOUND/CWSCRIPTS/myscript.sh
>>
>>
>> Is this correct ?  Is there a better way ?
>>
>> And C: seems to be /cygdrive/C/
>>
>
> A BETTER way?
>
> This has nothing per se to do with Cygwin, but, briefly:
>
> Standardize all your systems on something YOU can control. For example, I
> always create a top-level directory called l (that's the letter, not the
> numeral) which stands for "local", and another called nfs, which simply
> means a remote mount - could be real nfs or Samba - and then make links
> within these directories to wherever they need to go. That way, all disk
> space is available via either:
>
> /l/<whatever>
>
> or
>
> /nfs/<whatever>
>
> as appropriate.
>
> And there's never any confusion over which is which - and drive letters can
> be completely avoided as desired, or not.
>
> ...All (many!) good System Administrators do things similar to this...
>
> Richard
>
>
> --
> 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
>

--
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