AutoInput How do I execute a command in Termux using AutoInput + Tasker?

Discussion in 'AutoApps' started by jdrch, Dec 22, 2017.

  1. jdrch

    jdrch New Member

    My aim is to create a Tasker task that does the following:
    • Opens Termux
    • Uses AutoInput to execute a command
    • Exits Termux via tapping the Exit button on its notification
    How do I do that? So far what I've been able to come up with is the following Tasker Configuration:

    Test (4)
    A1: Launch App [ App:Termux Data: Exclude From Recent Apps:Off Always Start New Copy:Off ]
    A2: AutoInput Action [ Configuration:Type: Focus Text to Write : find /sdcard/Pictures -type f -exec mv --backup=numbered {} /sdcard/Sync ';'
    Action : Write Timeout (Seconds):20 Continue Task After Error:On ]​

    Unfortunately all that does is open Termux. Nothing else happens after that. Any ideas?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Hi there. When the app is launched is any text input box focused?
     
: termux, tasker

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice