Page 1 of 1

How to view live script output in history tab/api while post processing is ongoing?

Posted: February 15th, 2023, 8:11 pm
by sanjitsinhaa
Hey.

I am trying to write a post processing script which run in loop and print update of progress in percentage in the terminal, but i am not able to view live progress bar in history section. It only show the final print statement after the script is completely finished.

Is there any way by which i can get live terminal output from my api?

Re: How to view live script output in history tab/api whole script is not finished?

Posted: February 16th, 2023, 6:27 am
by jcfp
I don't think there is a way to get live updates of that output from sab while your postproc script is running, from either the web interface or the API.

Re: How to view live script output in history tab/api whole script is not finished?

Posted: February 16th, 2023, 10:48 am
by safihre
Maybe we could add it though, we just don't expose it but we do capture all output line by line while running.
You can create a Feature Request on Github!

Re: How to view live script output in history tab/api while post processing is ongoing?

Posted: March 14th, 2023, 1:33 pm
by sanjitsinhaa
I found the solution. I am redirecting my progress output to sabnzbd log and direclty writing progress in log file. I can retrieve this info in history section or via history API.