FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.34k stars 71 forks source link

`tail -F` or `tee` not working... #273

Closed hkfuertes closed 4 months ago

hkfuertes commented 4 months ago

I would like to monitor the output of this program via stdout for a frontend that I'm building.

I can ping google.es > log and get output from:

But I get nothing when doing uxplay > log... how can I capture stdout?

Thank you!

PS: ... else an option -info can be implemented and export a json with the audio metadata, the same way -ca does with artwork.

hkfuertes commented 4 months ago

I'll answer myself... this is due to the stdout being buffered, the next command (stdbuf) did the trick!

stdbuf -i0 -o0 -e0 uxplay > uxplay.log