Page 1 of 1

execute android terminal script

Posted: 13 Sep 2013 10:39
by holymoz
hi, I'm a bit noob on automagic scripts but I assume those are not the same as the terminal scripts, there is a way to execute terminal android scripts? example

echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

thanks!

Re: execute android terminal script

Posted: 13 Sep 2013 17:12
by standalonescript
Holymoz,

There may be and I am just not aware of it but what is provided is the Script action. Use the "?" Box after you create a Script action and you can see all the procedure calls and syntaxes.

I haven't been using AA long but I haven't been limited by the options yet.

Josh

Re: execute android terminal script

Posted: 14 Sep 2013 06:57
by Martin
Hi,

You can execute shell commands using action Execute Command and/or Execute Root Command.

Regards,
Martin

Re: execute android terminal script

Posted: 14 Sep 2013 07:23
by holymoz
thanks, I will try something.
very very good app anyway, tasker gave me a lot of bugs while yours is very reliable :D

Re: execute android terminal script

Posted: 14 Sep 2013 10:25
by holymoz
hi, how can I execute two commands on the same line? I want to execute this

PPID=$(pidof com.estrongs.android.safer)
echo "-17" > /proc/$PPID/oom_adj

to change the oom priority of an app

Re: execute android terminal script

Posted: 14 Sep 2013 11:37
by holymoz
nevermind, I made it, just put the script in a script.sh file with rvxrvxrvx permission and then executed sh script.sh with th execute root command :D

Re: execute android terminal script

Posted: 14 Sep 2013 11:44
by Martin
You can execute two commands by using a semicolon:
echo "abc"; echo "xyz"

Re: execute android terminal script

Posted: 14 Sep 2013 11:49
by holymoz
thanks a lot! :P

Re: execute android terminal script

Posted: 14 Sep 2013 22:28
by standalonescript
That is awesome. This will help me out a lot.