delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/11/22:37:33

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
Date: Thu, 11 Jul 2002 19:37:09 -0700 (Pacific Daylight Time)
From: Michael A Chase <mchase AT ix DOT netcom DOT com>
Subject: Re: Cygwin access from outside cygwin -- How to do it?
To: Dennis Allison <allison AT sumeru DOT stanford DOT EDU>, cygwin AT cygwin DOT com
Message-ID: <Mahogany-0.64.2-2992-20020711-193709.00@MCHASE-COMPAQ>
MIME-Version: 1.0
Message-ID: <Mahogany-0.64.2-2992-20020711-193707.00@MCHASE-COMPAQ>
References: <200207120216 DOT TAA25725 AT sumeru DOT stanford DOT EDU>
In-Reply-To: <200207120216.TAA25725@sumeru.stanford.EDU>
Reply-To: Michael A Chase <mchase AT ix DOT netcom DOT com>

On Thu, 11 Jul 2002 19:16:30 -0700 Dennis Allison <allison AT sumeru DOT stanford DOT EDU> wrote:

> Here's the situation.  I am running Smalltalk on Win2K. The Smalltalk program 
> needs to invoke latex running under cygwin.  We have it set up so the
> Win3SystemSupport package provides a command line interface into Win2K.
> 
> What I want to do is invoke a complex of perl scripts and programs which 
> currently live (and work!) under cygwin--that is, I can go into the 
> cygwin shell and run the stuff.  However, from Smalltalk, the command line
> interface can't seem to find perl or any of the other programs.
> 
> Clearly there is something failing in the path resolution!  I'd appreciate
> some help (or hints or words of wisdom) identifying what to do next to get
> the systems to communicate.  How does one expose the cygwin command line
> interfact in the Win2K environment?  Maybe I should start with
> cygwin.bat?

No.  Cygwin.bat sets things up for interactive operation.  You should
probably put everything in a bash shell script and then execute bash with
the script file path as an argument.  That way everything from that point
on is inside the Cygwin environment.

If you want to execute individual commands, make sure c:\cygwin\bin is
somewhere in %PATH%.  You should then be able to execute any Cygwin binary
program just like any MSDOS one.  Shell and Perl scripts will probably
require you to include the shell executable (e.g., bash.exe) or perl.exe as
part of your command line. 

It may make things easier if you use '/' instead of '\' in file paths
(except the initial executable passed through cmd.exe).  You don't have to
use POSIX paths like /cygdrive/c/dir/dir/file'; 'c:/dir/dir/file' works
quite well in place of 'c:\dir\dir\file'.  On the other hand, once you are
in the Cygwin environment, you can use any mount points visible to the
account you are running under.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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