How to control UI/Apps from shell? I have a jailbroken ipad (ios v. 7.1.1) and installed ssh, terminal and many admin tools. So far I am able to open/close an app from terminal and so much more... . Now I want to trigger UI events and control Apps(in effect touching a button, swiping, type a keyboard...) from terminal. Is there any (command line) tool that can help me accomplish that? I saw similar question here but it is more than a year old (some tools might have emerged lately).
There's not really an easy method for this. There's no AppleScript implementation for interactions on iOS, unlike OS X, so if you really want this you're probably going to have to make it happen yourself with your own custom app.

Even with your own app, there's no easy way of doing interaction.


  On Cocoa Senior (also known as "the Mac") we have methods like the gargantuan:

mouseEventWithType:location:modifierFlags:timestamp:
  windowNumber:context:eventNumber:clickCount:pressure:

  
  to generate events.
  
  Cocoa Junior on the iPhone doesn't have any methods like this, so we must work out how to achieve it ourselves.


This is outside the scope of this site, but see the following site for more information:


http://www.cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html