Termux can execute shell commands Tasker chokes on. Ergo, I need some way to execute a shell command in Termux from Tasker.
So far I've tried:
Per the app, you're supposed to set up a ~/.termux/tasker/ folder.
Does anyone know how to do this on a non-root device? I can't figure out
how, and the app exits if the folder isn't detected 🤦♂️ I suspect it's impossible without rooting.
My plan here was to have Tasker launch Termux, and then have AutoInput write the command into Termux. So I set up a task whose configuration is:
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 ]
The only thing the above does successfully is open Termux. After that, literally nothing happens. I've pretty much spent all day on this problem Googling and whatnot with no solution in sight. Any ideas?