Skip to content Skip to sidebar Skip to footer

Running Cygwin Commands From Batch File

My project is an AndroidNDK project and requires some build commands to run from Cygwin (or a Unix environment). Is there a way to do this using TeamCity? I tried using the command

Solution 1:

How are you launching and running commands from cygwin?

You will have to do bash -c "command you want to run" (assuming bash.exe is on path). Just calling bash and then giving commands will just launch bash.

Solution 2:

I used cygwinonce. I tried doing similar you wanted to do.I wanted to start cygwin with default command. bash --login -i myBashScript.exe only when we paste myBashScript.exe in bin folder.

Post a Comment for "Running Cygwin Commands From Batch File"