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

    Joined:
    Dec 22, 2017
    Messages:
    1
    Likes Received:
    0
    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

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hi there. When the app is launched is any text input box focused?
     
: termux, tasker

Share This Page