delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/03/12:45:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: Help on Windows-executable cygwin file/script
Date: Thu, 3 Jul 2008 18:44:06 +0200
Lines: 23
Message-ID: <g4ivl5$fnt$1@ger.gmane.org>
References: <486CF082 DOT 1030009 AT wanadoo DOT fr>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/2.70.2067
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

* Francois Hill (Thu, 03 Jul 2008 17:30:10 +0200)
> I have looked up my problem but have not seemed to find an answer
> anywhere, so there goes :
> 
> Is there a way to make a Windows exectuable that would run a 'Cygwin
> program' ? That is, automatically (and possibly silently) launch
> Cygwin and make it execute a given script ?*
> *

It's not really clear what you want? Make a script executable? 
Executable in Windows?
 
> This could be easily done if specifying a file to execute to
> Cygwin.bat were possible :
>     C:\ProgramFiles\Cygwin\Cygwin.bat -f myScriptToExecute.sh
> but I have not been able to find any reference addressing such a
> possibility.

You should put Cygwin into ProgramFiles. It's an environment, not an 
application. If you just want to run a shell script, then specify the 
interpreter. Cygwin.bat starts a interactive session.

C:\cygwin\bash.exe myScriptToExecute.sh


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