public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to run a bash script that calls a Win exe under Windows without installing Cygwin?
       [not found] <CAExwyV88dqJShKKO9-y=4FkxdqsOTM7-=pD9-FYg4PrzZo9a5A@mail.gmail.com>
@ 2011-10-19  7:57 ` bagvian
  2011-10-19  8:40   ` Oleksandr Gavenko
                     ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bagvian @ 2011-10-19  7:57 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to run a bash script that calls a Win exe under Windows without installing Cygwin?
  2011-10-19  7:57 ` How to run a bash script that calls a Win exe under Windows without installing Cygwin? bagvian
@ 2011-10-19  8:40   ` Oleksandr Gavenko
  2011-10-19 14:23   ` Jeremy Bopp
  2011-10-19 15:20   ` Andrew DeFaria
  2 siblings, 0 replies; 4+ messages in thread
From: Oleksandr Gavenko @ 2011-10-19  8:40 UTC (permalink / raw)
  To: cygwin

19.10.2011 10:57, bagvian пишет:
> 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.

Run

   ldd `which bash`

and copy to new host all listen dll with bash in same dir.



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to run a bash script that calls a Win exe under Windows without installing Cygwin?
  2011-10-19  7:57 ` How to run a bash script that calls a Win exe under Windows without installing Cygwin? bagvian
  2011-10-19  8:40   ` Oleksandr Gavenko
@ 2011-10-19 14:23   ` Jeremy Bopp
  2011-10-19 15:20   ` Andrew DeFaria
  2 siblings, 0 replies; 4+ messages in thread
From: Jeremy Bopp @ 2011-10-19 14:23 UTC (permalink / raw)
  To: cygwin

On 10/19/2011 02:57, bagvian wrote:
> 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.

Copying around a partial Cygwin installation is definitely not supported
on this list.  It can certainly be done, but you'll be on your own when
it breaks down.  Depending on the needs of your script, you may also
find the task of gathering everything together to be cumbersome.

If you truly can't install anything onto the test system by way of a
proper installation program, you're probably better off replacing
MYSHELL.sh with something else that already is available natively on the
system.  There are a number of options potentially available to you
including cmd, Windows Script Host, and PowerShell.

FYI, the Cygwin installation isn't really much more than a reliable and
supported way to get the things you need for Cygwin copied to the right
location on your hard drive.  The setup program only adds a few things
to the registry aside from copying files into place, and you can
probably delete those registry entries after setup completes without
affecting Cygwin itself.

Actually installing Cygwin shouldn't adversely affect anything else on
the system that isn't already aware of Cygwin, so if you really do need
Cygwin or parts of it, you should try to argue for Cygwin's inclusion on
the test machine.  It sounds like you might be better served by one of
the alternatives I mentioned though.

-Jeremy

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to run a bash script that calls a Win exe under Windows without installing Cygwin?
  2011-10-19  7:57 ` How to run a bash script that calls a Win exe under Windows without installing Cygwin? bagvian
  2011-10-19  8:40   ` Oleksandr Gavenko
  2011-10-19 14:23   ` Jeremy Bopp
@ 2011-10-19 15:20   ` Andrew DeFaria
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew DeFaria @ 2011-10-19 15:20 UTC (permalink / raw)
  To: cygwin

On 10/19/11 00:57, bagvian wrote:
> Basically, I can copy anything on that machine but I cannot install Cygwin.
If you can truly copy "anything" on that machine then why not simply 
copy <desktop>:C:\Cygwin to that machine?
-- 
Andrew DeFaria <http://defaria.com>
Out of my mind. Back in five minutes.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-19 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAExwyV88dqJShKKO9-y=4FkxdqsOTM7-=pD9-FYg4PrzZo9a5A@mail.gmail.com>
2011-10-19  7:57 ` How to run a bash script that calls a Win exe under Windows without installing Cygwin? bagvian
2011-10-19  8:40   ` Oleksandr Gavenko
2011-10-19 14:23   ` Jeremy Bopp
2011-10-19 15:20   ` Andrew DeFaria

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