Help with Termux:Tasker plugin

PeaceMaker535

New member
Hi! I have a termux shell script which I run from Macrodroid using the Termux:Tasker plugin. The problem is that the script takes atleast a minute to finish but for some reason the plugin does not wait for the execution to finish before executing the next command. I don't see any option to say wait for the script to finish before executing other set of commands nor an option to set timeout. The Termux:Tasker page (https://github.com/termux/termux-tasker) talks about having the default timeout as 10 secs and a option to set `Wait for results for command` but I don't see these option when setting up the plugin in Macrodroid. Please help me in figuring out the following -
1. Run a termux script and wait for it to finish before executing the next set of commands (as I need the stdout of this for the next command to proceed).
2. In case the above execution doesnot finish within the specified timeout, then kill it.
Any help would be much appreciated!
 

tanutanu

Well-known member
Hi! I have a termux shell script which I run from Macrodroid using the Termux:Tasker plugin. The problem is that the script takes atleast a minute to finish but for some reason the plugin does not wait for the execution to finish before executing the next command. I don't see any option to say wait for the script to finish before executing other set of commands nor an option to set timeout. The Termux:Tasker page (https://github.com/termux/termux-tasker) talks about having the default timeout as 10 secs and a option to set `Wait for results for command` but I don't see these option when setting up the plugin in Macrodroid. Please help me in figuring out the following -
1. Run a termux script and wait for it to finish before executing the next set of commands (as I need the stdout of this for the next command to proceed).
2. In case the above execution doesnot finish within the specified timeout, then kill it.
Any help would be much appreciated!
Use Wait until action, or,have a specific waiting tiime in while loop if unreliable.
Otherwise, you can send an intent with am broadcast and receive it by intent trigger.
Please refer tue post as well.
The working macro is here.
 

Attachments

  • IMG_20220121_083356.jpg
    IMG_20220121_083356.jpg
    70.6 KB · Views: 13
  • IMG_20220121_083448.jpg
    IMG_20220121_083448.jpg
    128.9 KB · Views: 13
Top