How to automatically start and advance a few steps in an application in background in linux?

Abhishek Pathak

I'm using Genymotion to run WhatsApp on Ubuntu 13.04 as I don't own an Android.

To get to Whatsapp everytime I login, I have to

1) open terminal and run ~genymotion/genymotion

2) click a button on the GUI which opens up another new window (play button).

3) wait for about 30s for the device to get ready.

How can I make the computer do these first two steps automatically for me at start up?

Even better if it possible to do them in background, i.e., I shouldn't see the GUI opening. It should perform the steps and be "minimized".

I was thinking if there was a way to record what my click does and then put it in a script. Something like a strace command.

I hope my question is clear enough. I'm relatively new to Linux.

pcans

For now Genymotion allows you to start a VM from the command line, by calling the "player" binary, and passing the VM name as a parameter.

You could write a shell script that:

  • run: <GENYMOTION PATH>/player --vm-name <VM NAME>,
  • wait some seconds for the VM to boot: sleep 10,
  • then use adb to start your Application: adb shell am start -n com.whatsapp/com.whatsapp.Main

Luckily, no need to simulate clicks for this.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How should I start my nodejs application automatically for tests

From Dev

How to automatically start and advance a few steps in an application in background in linux?

From Dev

how to start standalone.bat automatically after installing application?

From Dev

How to capture image automatically when application start in android?

From Dev

Execute task in background at application start and for ever - Android

From Dev

How to automatically register @Entity decorated classes at application start up?

From Dev

Linux - how to set group permissions for new files in advance

From Dev

How to automatically start Teapot on an Image start?

From Dev

How to tell if application is in the background?

From Dev

Application getting Killed when kept in Background for Few minutes

From Dev

How to start nodejs application automatically on openwrt - Arduino Yun -

From Dev

Start java application in background automatically after boot on embedded linux

From Dev

Unable To Set Application Identity Service to Start Automatically

From Dev

Automatically start an application with a modifed LD_PRELOAD?

From Dev

Starting a background application automatically on boot

From Dev

How should I start my nodejs application automatically for tests

From Dev

How to automatically re-open/re-start a WPF application in case of any errors?

From Dev

How to automatically start Tor on server?

From Dev

Automatically advance date by one month

From Dev

How to do transparent background on few div to see background of parent

From Dev

How to automatically update the database on application start up?

From Dev

How to tell if application is in the background?

From Dev

How to start sshd automatically

From Dev

Application getting Killed when kept in Background for Few minutes

From Dev

Start java application in background automatically after boot on embedded linux

From Dev

Unable To Set Application Identity Service to Start Automatically

From Dev

How to skip steps in background of Behave BDD?

From Dev

How can I automatically start from the terminal in Kali Linux?

From Dev

Background application that start another background application

Related Related

  1. 1

    How should I start my nodejs application automatically for tests

  2. 2

    How to automatically start and advance a few steps in an application in background in linux?

  3. 3

    how to start standalone.bat automatically after installing application?

  4. 4

    How to capture image automatically when application start in android?

  5. 5

    Execute task in background at application start and for ever - Android

  6. 6

    How to automatically register @Entity decorated classes at application start up?

  7. 7

    Linux - how to set group permissions for new files in advance

  8. 8

    How to automatically start Teapot on an Image start?

  9. 9

    How to tell if application is in the background?

  10. 10

    Application getting Killed when kept in Background for Few minutes

  11. 11

    How to start nodejs application automatically on openwrt - Arduino Yun -

  12. 12

    Start java application in background automatically after boot on embedded linux

  13. 13

    Unable To Set Application Identity Service to Start Automatically

  14. 14

    Automatically start an application with a modifed LD_PRELOAD?

  15. 15

    Starting a background application automatically on boot

  16. 16

    How should I start my nodejs application automatically for tests

  17. 17

    How to automatically re-open/re-start a WPF application in case of any errors?

  18. 18

    How to automatically start Tor on server?

  19. 19

    Automatically advance date by one month

  20. 20

    How to do transparent background on few div to see background of parent

  21. 21

    How to automatically update the database on application start up?

  22. 22

    How to tell if application is in the background?

  23. 23

    How to start sshd automatically

  24. 24

    Application getting Killed when kept in Background for Few minutes

  25. 25

    Start java application in background automatically after boot on embedded linux

  26. 26

    Unable To Set Application Identity Service to Start Automatically

  27. 27

    How to skip steps in background of Behave BDD?

  28. 28

    How can I automatically start from the terminal in Kali Linux?

  29. 29

    Background application that start another background application

HotTag

Archive