Stream stdout from Sidecar #8641
Answered
by
FabianLars
AnupamKris
asked this question in
Q&A
-
I have a python file converted to exe that runs as a sidecar from Tauri. Is it possible to get the stdout from the sidecar live so that I can display a progressbar for the user. The current way is to use await, but it waits till the execution is complete. I am invoking it from js. |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Jan 19, 2024
Replies: 1 comment 3 replies
-
Use spawn() instead of execute(). The first Command example here https://tauri.app/v1/api/js/shell#command should be what you're asking for. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you try printing it with
print(message, flush = True)
(instead of justprint(message)
)?