This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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 (dash or maybe
bash), perhaps in login mode to source your profile.  Lastly if it needs
a tty you'll want to start all that from mintty.

As others have commented, quoting all these commands correctly so they
are intact at the various stages of expansion can be quite an exercise
to get right, so it will be easier if you can wrap these things into a
script that doesn't need any arguments (or at least none that would need

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]