Page 1 of 1

open with shell, termux

Posted: 2021-04-11, 14:21 UTC
by terriksson
Hello,

how does one open/stream/pipe files into (termux) scripts?

I did not find any good tutorials for the shell function within totalcommander.

Re: open with shell, termux

Posted: 2021-06-12, 08:56 UTC
by sweetbox
Don't know what exact command you want.
Here,I just list one for indication:

command usually using "su", if "sh" not work.
parameters:

settings put global auto_time 0 (these starting with "settings" do the android settings' work for fast and access to some "secret" settings)

am start -n com.termux/com.termux.app.TermuxActivity
sleep 1 (if you are execute input text command,I recommend you add this one to avoid input failure)
input text 'XXXXXX' (XXXXXX is the command line you manually want to type)
input keyevent 66 (this = you hit the button "enter")

am startservice -n com.termux/com.termux.app.TermuxService -a com.termux.service_execute -d /data/data/com.termux/files/usr/tmp/XXXXXX (this one is doing linux like program or service)