Re: How to start Cygwin from outside Cygwin and pass a command to execute?

2018-02-04 Thread Andrey Repin
Greetings, Ben! > Assume my CgyWin (on a windows 7) is currently NOT started. This statement makes zero sense. "Cygwin" as is is a compatibility layer (library), you can't "start" it separately from a program that uses it. > Assume I want to call from Windows my CgyWin and pass a command to

Re: How to start Cygwin from outside Cygwin and pass a command to execute?

2018-02-02 Thread Achim Gratz
Ben via cygwin writes: > Assume I want to call from Windows my CgyWin and pass a command to execute. That depends a bit on what kind of environment that command expects, but it could be as easy as invoking it with the full path. If it needs a fully set up an environment you need to start a shell

Re: How to start Cygwin from outside Cygwin and pass a command to execute?

2018-02-02 Thread Brian Inglis
On 2018-02-02 01:31, Ben via cygwin wrote: > Assume my CgyWin (on a windows 7) is currently NOT started. > Assume I want to call from Windows my CgyWin and pass a command to execute. > Afterwards CygWin should automatically be closed again. > How can I achieve this? Cygwin is a DLL providing

RE: How to start Cygwin from outside Cygwin and pass a command to execute?

2018-02-02 Thread David Allsopp
Ben via cygwin wrote: > Assume my CgyWin (on a windows 7) is currently NOT started. > > Assume I want to call from Windows my CgyWin and pass a command to > execute. > > Afterwards CygWin should automatically be closed again. > > How can I achieve this? C:\cygwin\bin\bash.exe -c "command"