delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/11/02:09:10

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 10 Jan 2008 21:49:59 -0800
From: Jeff <for DOT listmail AT verizon DOT net>
Subject: Re: [BUG?] run.exe and pdflatex
To: cygwin AT cygwin DOT com
Message-id: <HOwhHx3lQnja092yn@verizon.net>
MIME-version: 1.0
Newsgroups: lists.cygwin
Lines: 49
References: <fm5sat$o04$1 AT ger DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0801101505510 DOT 8742 AT access1 DOT cims DOT nyu DOT edu> <fm608d$6ui$1 AT ger DOT gmane DOT org>
X-IsSubscribed: yes
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
Note-from-DJ: This may be spam

On Thu, 10 Jan 2008 21:47:08 +0100,
Sven Köhler <skoehler[at]upb[dot]de> wrote:

>But is there another easy way to execute cygwin programs from outside
>cygwin? I think of symlinks, shell-scripts, perl-scripts, etc...

The "easiest" or "best" depends partly upon what you use to provide
your console window. Do you run bash in a native Windows console? Do
you 'export CYGWIN=tty' to make this console window more POSIX-like?
Or, perhaps, maybe you use a terminal program. Cygwin RXVT can run in
"native mode" using the built-in W11 code, or it can be used with an X
server. If you have X11 installed, you can use xterm, and perhaps other
things. I read somewhere that some people use putty...

It also depends on which Windows subsystem you are using to launch your
Cygwin app. Are you adding registry entries to create Explorer context
menu commands and/or file type associations? Are you calling your
Cygwin app from a "DOS" batch file (and do you need the control to be
returned to your batch file once your Cygwin app completes)? Are you
calling it from a native Windows console mode app that accepts or
expects user-defined external apps for some functions? Or, perhaps, you
just want to create a desktop shortcut to your Cygwin app.

There has been a fair amount of discussion of this topic in the last
two months. I described my own solutions in
<http://cygwin.com/ml/cygwin/2007-12/msg00506.html>. And yes, some of
this discussion has been about shell quoting.

>I'm not a unix-programmer unfortunatly. I'm not very familiar with the APIs.

Free documentation is available. The Single Unix Specification ver.2
(susv2) is downloadable at
<http://www.opengroup.org/onlinepubs/007908775/download/>. susv3 is
available at <http://www.unix.org/single_unix_specification/>; you must
register first, then you can navigate your way to the downloads page.

I also managed to find some Redhat linux manual pages (probably in an
RPM); section 2 of the manual also documents the APIs. I don't recall
where on RedHat's site I found them, I would have to dig for them
again.

These two resources, plus the Cygwin user's guide, should give you
everything you need.

Jeff

-- 
"Sorry, my life is still in beta, and nowhere near stable enough for a
release."

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