delorie.com/archives/browse.cgi | search |
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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=tAjHJxPpuwsdsUpZV8MrOxZ3Skwr2dOJ0IKHXq/laxL | |
WF8QwghL813n1r7JcbhIiQw3+HMk7EBAWU10T1LUbIW7gG1Vw8OgnackfFzgeJ+k | |
OCV6LUiX//fOU5hEUuBERia9sff5F8VjJUUZ4JSQ9mtNv7tWLAyQsWUQNt70omhw | |
= | |
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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=XQcggPSnU0+/1ScmhE/1jpR7/NE=; b=xJFWHVmvN2GIlS3G8 | |
m0H9LdQ7w1mZCy2hd2D0RSbNnKtcq/su4vbzfXbrPm8w138H50/M1hN5DsMPvgHg | |
hHBMPop53oIbCRH060vH9QGAvYDUJ8/Jo8VUNClkmD/9TIR1J5tD6Dq3+UmyLT1Z | |
egUjE5fKj/hZvOU7VsO8/riER0= | |
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=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | proxyz12.mailnet.ptd.net |
Message-ID: | <52F4587C.2030000@ptd.net> |
Date: | Thu, 06 Feb 2014 22:52:28 -0500 |
From: | Mike Rushton <mrushton AT ptd DOT net> |
User-Agent: | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Newbie Cygdrive questions |
References: | <1737153647 DOT 9966666 DOT 1391712802938 DOT JavaMail DOT root AT ptd DOT net> <1037990834 DOT 20140207043933 AT mtu-net DOT ru> <52F43166 DOT 6040303 AT ptd DOT net> <52F44E59 DOT 6050904 AT cygwin DOT com> |
In-Reply-To: | <52F44E59.6050904@cygwin.com> |
X-IsSubscribed: | yes |
Good ... I will have to work with that Cygpath and see what kind of results that I get. I am unsure how this program is going to respond. I may have to just do the shell escape and execute the invocation of gentran if the program can not figure out where the location of its configuration files should be. Now I see that Cygwin has a C compiler ... I will have to play with this a little later - I may be able to find a use for this. What about a Secure Shell client to transfer files and to get a secure session going, does Cygwin have that ? I see other people's emails about ssh but am not sure if this is what I am looking for. This Cygwin is a great package to work with. I have been programming in some sort of shell script since 1992. On 2/6/2014 10:09 PM, Larry Hall (Cygwin) wrote: > On 2/6/2014 8:05 PM, Mike Rushton wrote: >> I see. >> >> >> What would you say to this ? >> >> I have to use an EDI translator - it runs under windows/dos and had unix >> versions >> >> I was trying this ... but the program needed to see the path of a config >> file ... after the -cp switch. >> >> /cygdrive/c/gentran61SA/lftran /cygdrive/c/gentran61sa/data/EDN -id -cp >> /cygdrive/c/Gentran61SA >> >> >> It gave me errors can not open file >> /cygdrive/c/Gentran61SA\ediprim.cfg. It >> was like the program could not figure out >> what style of paths to use. >> >> I changed it to : (escape out of bash and run this code) >> >> ! c:/gentran61SA/lftran c:/gentran61sa/data/EDN -id -cp c:/Gentran61SA >> >> and it worked perfectly. Is there a better way to do this ? > > Well, as I said before, Cygwin really prefers POSIX paths. But, as > you've > found out, non-Cygwin programs won't understand POSIX paths. If you need > to interact with non-Cygwin programs, you'll either want to translate the > paths you send to them back to DOS-style paths with cygpath, set up links > that both Windows and Cygwin will understand without translation, or live > somewhat dangerously and use the path-style you found above. I'm sure > there are other flavors you could find that could also work, at least in > some cases. The cygpath route is the one approach that fully supports > POSIX paths and DOS-style paths. > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |