open with shell, termux

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
terriksson
Junior Member
Junior Member
Posts: 6
Joined: 2021-04-11, 14:05 UTC

open with shell, termux

Post 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.
sweetbox
Junior Member
Junior Member
Posts: 34
Joined: 2012-03-27, 11:56 UTC

Re: open with shell, termux

Post 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)
Post Reply