Command works in termux but not in macrodroid shell

Dimlos

Well-known member
I was able to run the script through Termux:Tasker and assign the result to a variable.
Here is a very simple example.
 

Attachments

  • Macro.jpg
    Macro.jpg
    358.4 KB · Views: 16
  • Script.jpg
    Script.jpg
    252.2 KB · Views: 14
  • Result.jpg
    Result.jpg
    358.4 KB · Views: 14

Dimlos

Well-known member
In my example you can see how to execute a basic SQL statement.
Using variables eliminates the need to write a script for each SQL statement.

As a reminder, the directories that Termux:Tasker can recognize are fixed.
 
So i was able to install sqlite in termux and verify its working...

However when i used shell im MD it says sqlite not installed...
So either MD is using some other shell app, because shell worked even without termux installed, or maybe when i logged on via termux it did the sqlite install under a user and not as a super user install?

My guess is thar my macrodroid is not using termux for shell.

I tried looking for any settings but found none.
 
i tried using the termux tasker plugin but have no idea how to configure it
 

Attachments

  • Screenshot_20230418_091857_TermuxTasker.jpg
    Screenshot_20230418_091857_TermuxTasker.jpg
    266.9 KB · Views: 9

Dimlos

Well-known member
I have a separate thread explaining the basic setup of termux if you would like to see it.
I think it will be useful if you apply it.
 
Top