Closed hkfuertes closed 4 months ago
I would like to monitor the output of this program via stdout for a frontend that I'm building.
stdout
I can ping google.es > log and get output from:
ping google.es > log
tail -F log
Stream<String> runWithOutput(String cmd, List<String> args) async*{ var p = await Process.start(cmd, args); yield* p.stdout.transform(utf8.decoder); }
But I get nothing when doing uxplay > log... how can I capture stdout?
uxplay > log
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.
-info
-ca
I'll answer myself... this is due to the stdout being buffered, the next command (stdbuf) did the trick!
stdbuf
stdbuf -i0 -o0 -e0 uxplay > uxplay.log
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:tail -F log
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.