Cygwin的运行从批处理文件命令 [英] Running Cygwin commands from batch file

查看:201
本文介绍了Cygwin的运行从批处理文件命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是一个AndroidNDK项目,需要一定的构建命令从Cygwin的(或Unix的环境)中运行。有没有办法做到这一点使用TeamCity的?

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?

我试着用命令行生成步骤和传球在第一次启动的cygwin,然后执行我需要构建命令的批处理文件。然而,这是不行的,它是所有推出的cygwin,但我的UNIX命令没有得到在此之后执行。

I tried using the commandline build step and passing in a batch file which first launches cygwin, and then performs the build commands I need. However this does not work, all it does is launch cygwin, but my unix commands do not get executed after this.

推荐答案

你是如何启动和运行cygwin的命令?

How are you launching and running commands from cygwin?

您将不得不做的bash -c命令要运行(假设bash.exe是路径)。只是打电话的bash,然后给命令将只推出庆典。

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.

这篇关于Cygwin的运行从批处理文件命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆