0

I am trying to run Android's MonkeyRunner but having problems running it from my Git Shell.

When I run: monkeyrunner.bat it gives me this error.

$ 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 Nomad
  • 7,155
  • 14
  • 65
  • 100

1 Answers1

0

The git-shell is a login shell for SSH accounts to provide restricted Git access.

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.

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.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134