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: Mike Brown <brown at mrvideo dot vidiot dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 9 Nov 2014 18:35:30 -0600
- 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>
On Mon, Nov 10, 2014 at 12:58:07AM +0300, Andrey Repin wrote:
> Greetings, Nellis, Kenneth!
>
> > 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.
Maybe the secret is not to try and start a script from within a command prompt.
Start cygwin xterms. 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.
It is true that they are not "clickable," but entering the script name in
the xterm also allows me to also include parameters/options.
MB
--
e-mail: vidiot@vidiot.com | vidiot@vidiot.net /~\ The ASCII
6082066843@email.uscc.net (140 char limit) \ / Ribbon Campaign
Visit - URL: http://vidiot.com/ X Against
http://vidiot.net/ / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
- Castle - 11/25/13
--
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