[英]MonkeyRunner cannot run on Git Shell. Receiving @echo: command not found
I am trying to run Android's MonkeyRunner
but having problems running it from my Git Shell
. 我正在尝试运行Android的
MonkeyRunner
但是从我的Git Shell
运行它时遇到了问题。
When I run: monkeyrunner.bat
it gives me this error. 当我运行时:
monkeyrunner.bat
它给了我这个错误。
$ monkeyrunner.bat
/c/AndroidSDK/tools/monkeyrunner.bat: line 1: @echo: command not found
/c/AndroidSDK/tools/monkeyrunner.bat: line 2: syntax error near unexpected token `('
/c/AndroidSDK/tools/monkeyrunner.bat: line 2: `rem Copyright (C) 2010 The Android Open Source Project'
How do I fix this? 我该如何解决? I tried running my script with it too but still same error.
我也尝试使用它运行脚本,但是仍然出现相同的错误。
Thanks in advance! 提前致谢!
The git-shell
is a login shell for SSH accounts to provide restricted Git access. git-shell
是用于SSH帐户的登录shell,以提供受限制的Git访问。
It permits execution only of server-side Git commands implementing the pull/push functionality, plus custom commands present in a subdirectory named git-shell-commands
in the user's home directory. 它仅允许执行实现拉/推功能的服务器端Git命令以及用户主目录中名为
git-shell-commands
的子目录中的自定义命令。
Therefore, if you don't have monkeyrunner
(notice, not .bat or .sh here) setup in the git-shell-commands
you won't be able to run it. 因此,如果您在
git-shell-commands
没有安装monkeyrunner
(注意,此处不是.bat或.sh),则将无法运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.