This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: Running shell-scripts from NT GUI?


---Magnus Homann <homann@homann.se> wrote:
> 
> Now, to make it easuer to run these scritps, I would like to make an
icon
> that, when activated, starts /bin/sh and runs a specific script. It
sounds
> really easy to do, but I don't know where to start. I've tried
reading the
> archive and the docs, but I don't really know what I'm looking for... 
> 
> Any ideas out there?

I have a couple of options.

Option1: Always name the script with a suffix like .sh and the
associate /bin/sh to .sh.

Option2: You have a UNIX script named myscript that you want Win32 to
run.  Create a file called myscript.bat which contains:

c:\bin\sh -c /scripts/myscript

BTW: I prefer Option2.

==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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