delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/17/10:07:52

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: support
Date: Tue, 17 Jan 2006 15:07:37 -0000
MIME-Version: 1.0
In-Reply-To: <43CCF069.4040304@byu.net>
Message-ID: <SERRANOI9mK6PYzDabi00000174@SERRANO.CAM.ARTIMI.COM>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> [I hate it when simple instructions aren't followed - I explicitly said
> that the list was the correct place for support...]

  Nilgun, I won't want private mail either; keep it to the list please.

>> I am a new user for Cygwin and trying start a CAD program (UGNX2) in
>> Windows by scripting in csh. Normally I run 2 batch files for required
>> libraries and the paths in command prompt window of Windows. Then run
>> the main batch file (ugii.bat) to start the program and it really starts
>> perfectly. 
>> Whereas when I do the same things in csh, an error message appears as
>> follows: 
>> 
>> ---------------------------
>> \ugraf.exe
>> ---------------------------
>> Cannot find the file '\ugraf.exe' (or one of its components). Make sure
>> the path and filename are correct and that all required libraries are
>> available. 
>> ---------------------------
>> 
>> You can find the ugii.bat in the attached file.
>> ugraf.exe file is in the same folder with ugii.bat file. But I dont
>> understand why the same script works in command prompt and does not work
>> in csh...
> 
> If you want help with your csh script, then attach the csh script, not the
> Windows .bat file.  And remember that in cygwin, you should be using POSIX
> paths, such as ./ugraf.exe, since backslashes in Windows paths require
> extra escaping that make them tougher to use.

  And also remember that in shell scripting most commands run in a sub shell,
and as soon as that subshell exits any changes made to its environment are
lost, so you need to source those files with the environment variable settings
rather than invoke them as standalone command lines.



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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