This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help on Windows-executable cygwin file/script


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]