delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/07/08:05:30

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=Kp7xvIyGNx5BQRlh
0VLG3OwV0Yps5iNm05bU4V3LamCkEgIe39zXvetJWf1a4WQbtwZ/8RAaUJGwKFHQ
h/c2y5NYeJhUfGzsWTALadL+h5O0kSyFIeXcFIBg9BnbZ/ZpzMA220Qp+9EZdA3g
xYpzH+X4y5WKGLHDVVjqCE1Qd0k=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=6wjhRxrQYdP3BKbxb0MXAW
AlyTU=; b=Xo28kY9ruTEN1uRVXd5ubq01wBLZ2NpSF2/7ctk3J5q2mRSM80e0mk
mTvZuRx5zH/s/KGiVyUoe2OeHmPB8Kz8mY8nTjWc1qTpTiwaupMJa7Wmw2gAUbYC
DRB0k3A19fiG57ErdNAQtuJyYi8rCLNQYXMdLx4Ic5hXENOCOnrPc=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Fri, 7 Feb 2014 16:54:42 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1342362421.20140207165442@mtu-net.ru>
To: Mike Rushton <mrushton AT ptd DOT net>, cygwin AT cygwin DOT com
Subject: Re: Newbie Cygdrive questions
In-Reply-To: <52F43166.6040303@ptd.net>
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>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Mike Rushton!

Please don't http://cygwin.com/acronyms/#TOFU

> What would you say to this ?

> I have to use an EDI translator - it runs under windows/dos and had unix 
> versions

If it have UNIX version, perhaps, a Cygwin package for it exists, or it can be
compiled.

> 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

As one of possible solutions:
/cygdrive/c/gentran61SA/lftran "$( cygpath -lw /cygdrive/c/gentran61sa/data/EDN )" -id -cp  "$( cygpath -lw /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 ?

"Better" in this case is subjective.


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 07.02.2014, <16:50>

Sorry for my terrible english...


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