You can do as Mark suggested or you can use a shebang<http://en.wikipedia.org/wiki/Shebang_(Unix)>line at the beginning of your script, use either
#! /usr/bin/env monkeyrunner or #! /path/to/your/monkeyrunner depending on whether PATH contains android tools directory or not. Set the execution bit on your script $ chmod +x your-script and execute it $ ./your-script On Monday, 4 June 2012 06:17:40 UTC-4, Amey Bapat wrote: > > HELLO PEOPLE, > well i have wriiten a sample python script in my eclipse. > now i need to run it on my emulator. > this is whr i am getting stuck.. > dis is the blog i followed to make it work > http://goravsingal.hubpages.com/hub/Android-UI-Automation-with-Python > where dey say this is to be done.. > > Open shell prompt (cmd.exe, or terminal) > > - Type absolute path of monkeyrunner followed by path of python script > > example: "c:\\Program Files\\Android\\android-sdk\\tools\ > \monkeyrunner.bat" "C:\\sample.py" > > did not work out for me.. > i am using ubuntu.. > not sure what exactly is to be done.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

