public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: bagvian <bagvian@gmail.com>
To: cygwin@cygwin.com
Subject: How to run a bash script that calls a Win exe under Windows without installing Cygwin?
Date: Wed, 19 Oct 2011 07:57:00 -0000	[thread overview]
Message-ID: <CAExwyV_6BiuWbHuTX9btmjKJVLGVgXW7uSm1y2=jU00bTXetbg@mail.gmail.com> (raw)
In-Reply-To: <CAExwyV88dqJShKKO9-y=4FkxdqsOTM7-=pD9-FYg4PrzZo9a5A@mail.gmail.com>

Dear all,

I have gone through Cygwin FAQ and documentation, did some googling
but could not find any answer to my cross system problem.

I currently work under Win Vista and have a proper Cygwin installation
running perfectly.
I have to perform heavy tests on a Windows console executable program
say: MYPROG.exe (obtained by using MS Visual Studio).
To test such a program I have written a bash shell script, say:
MYSHELL.sh, that does the following things:
1/ Build up data files
2/ Launch my Win exe: MYPROG.exe
3/ Organise all the resulting data

This procedure works perfectly on my own machine and all my tests are
performed by only running MYSHELL.sh in my Cygwin console.

Now, I need to perform the same test procedure on another Win Vista
machine where Cygwin is not installed. I therefore have to find a
solution around the Win prompt (cmd.exe).

Basically, I can copy anything on that machine but I cannot install Cygwin.

Is there a way to run my script MYSHELL.sh within Win prompt by only
copying Cygwin dll (cygwin1.dll) at the right place and maybe changing
some settings ?

Would it be possible (better) to adopt another strategy that would be
to write a "macro" Win console exe file that can run in the Win prompt
and that would kind of embed / link with: cygwin1.dll, MYSHELL.sh,
MYPROG.exe ?

I thank you in advance for any suggestion.
Bagvian

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

       reply	other threads:[~2011-10-19  7:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAExwyV88dqJShKKO9-y=4FkxdqsOTM7-=pD9-FYg4PrzZo9a5A@mail.gmail.com>
2011-10-19  7:57 ` bagvian [this message]
2011-10-19  8:40   ` Oleksandr Gavenko
2011-10-19 14:23   ` Jeremy Bopp
2011-10-19 15:20   ` Andrew DeFaria

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAExwyV_6BiuWbHuTX9btmjKJVLGVgXW7uSm1y2=jU00bTXetbg@mail.gmail.com' \
    --to=bagvian@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).