Shell commands from action Script

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
igoryan94
Posts: 45
Joined: 29 Jan 2016 18:10

Shell commands from action Script

Post by igoryan94 » 08 Mar 2016 10:28

Hi Martin,
Could you please add a function for Script action to directly execute some Shell/Root command?
For example (call it "execRoot()"):

gov = execRoot("cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor");
if (gov == "ondemand") {
// tweak this governor
}

Thank you!

Sorry for my bad English...

Locked