Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output/Error display of background task executed via widget #100

Open
tathastu871 opened this issue Mar 16, 2023 · 2 comments
Open

Output/Error display of background task executed via widget #100

tathastu871 opened this issue Mar 16, 2023 · 2 comments

Comments

@tathastu871
Copy link

tathastu871 commented Mar 16, 2023

Feature description
Using .tasks folder for executing termux widget scripts in background
When script executed via widget, it should create coproc or >&3 file descriptors for logging both output and error seperately.
On widget there will be two icons inline with script name one for output and one for error.
After running script, when user clicks the output/error button/icon, a pop-up view of output and error either live or using tail command will be displayed.

The pop view has to be resizable

The output text to be displayed how nicely it should be formatted should depend on user and script. Widget app just displays whaterver the script/command is sending to /dev/stdout and error

@agnostic-apollo
Copy link
Member

Support for showing notification that starts an activity with the output has been added locally. Widget support will be thought on later.

@tathastu871
Copy link
Author

eg i have curl/wget script. script is written such yhat everythimg is silenced only the progress bar is shown in stdout.
want to run script in background via wifget and keep checkimg stdout for progress bar

Check: https://play.google.com/store/apps/details?id=com.binarysmith.webclipwidget.ad

make two widgets
1-> to run script
2-> to display live text
using id of 2nd we send text to it
and using activity manager execute scheduled refresh of 2nd widget so kind of live update is displayed

currently tasker+widget can be used to get such output display functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants