Comments (4)
This is expected behaviour currently as mentioned in README
Execute in a terminal session toggle defines whether the commands will be run in the background or in a foreground terminal session.
If the toggle is enabled, a new terminal session will open up automatically in the foreground and commands will be run inside it. Result of commands is not returned to the plugin host app.
For BackgroundJobs, the stdout
and stderr
is captured in variables and can easily be returned to the plugin host app, but for foreground terminal session commands, those are sent to the terminal view.
However, exit code is still available when terminal sessions close, which can likely be sent back to the plugin host app, would require some work of course in termux-app
, specially with linking sessions with their respective execution intents. And an addition of a Wait for commands to end
toggle if Execute in a terminal session
toggle is enabled in termux-tasker
.
It might also be possible to capture stdout
and stderr
in variables and also sent them to the terminal view, but would require looking into.
from termux-tasker.
Okay, got it.
So definitely not a bug, but a feature request. Perhaps one thing we could do is be a bit more clear regarding the fact that the foreground terminal session runs independently from the tasker task, which continues immediately. I'd read the documentation but it is not explicit, and perhaps even a bit misleading ("run in background" stops the tasker task, whereas "run in foreground" runs asynchronously while the task continues).
Do you prefer to keep the issue open as a feature request? Otherwise I'll close it.
Thanks!
from termux-tasker.
I agree, should make it more clear.
Leave it open, me or someone else would get to it. The termux-app
android-10
branch may also require merging with master
, so big changes in master
before that would cause problems.
from termux-tasker.
Closed by fecba50
from termux-tasker.
Related Issues (20)
- Is the development of this plugin stopped? I can't install in on Android 14 HOT 1
- bash: extglob off in the plugin - not possible to enable it HOT 4
- Plugin doesn't work on Android 14 HOT 4
- The argument not support file paths HOT 2
- App package conflicting HOT 1
- Cannot install: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] HOT 4
- change request: make com.termux.permission.RUN_COMMAND permission enforcement optional HOT 3
- Error installing Termux Tasker HOT 1
- I can't install this app on my Android HOT 1
- stdout not working with Tasker HOT 9
- Installation issue HOT 1
- httpie binary doesn't work in background HOT 9
- My script output dissappears immediately after running HOT 2
- Working directory doesn't seem to work if there are spaces in the name
- Actions downloads expired HOT 1
- "other plugin host apps"? HOT 1
- Readme unclear HOT 2
- Script not found HOT 9
- bash - "Arguments" doesn't accept bash commands HOT 3
- App icon stay showed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-tasker.