This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to embed shell script within a .BAT file
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Mike Brown <brown at mrvideo dot vidiot dot com>, cygwin at cygwin dot com
- Date: Mon, 10 Nov 2014 05:10:00 +0300
- Subject: Re: how to embed shell script within a .BAT file
- Authentication-results: sourceware.org; auth=none
- References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 at USA7109MB022 dot na dot xerox dot net> <71156572 dot 20141110005807 at yandex dot ru> <20141110003530 dot GU4678 at mrvideo dot vidiot dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Mike Brown!
>> > I'm tired of creating pairs of script files: a clickable .BAT file
>> > to invoke my shell script and then my shell script to do the actual
>> > work.
>>
>> google: cygwin shell wrapper script
>> I posted mine in the mailing list not once, and it's not the only available
>> solution.
> I'm curious. Why go through all of what you wrote when all you need to do
> is execute the shell script? I'm a Z-shell user and have a bunch of scripts
> that I run.
Scripts aren't executed in vacuum. And the question is not limited to SHELL
scripts.
> Maybe the secret is not to try and start a script from within a command prompt.
> Start cygwin xterms.
Why? I don't need no friggin xterm, I need to run a script.
Is this a hard concept to grasp?
> I have two that I start up after booting the system.
> The scripts are in my home/bin path, so they are found.
> It is as simple as that.
Simple as what?
I don't understand, what "two" you have and what you are actually doing.
> It is true that they are not "clickable," but entering the script name in
> the xterm also allows me to also include parameters/options.
I don't know the name, I have a script that I want to run. Here. Now. Why
can't I just click it?
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 10.11.2014, <05:07>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple