Reading into the output of a long running shellExecute

helxi brucewayneshit at gmail.com
Sat Nov 10 15:05:38 UTC 2018


Hi. I have not done any multi-threaded programming before. What I 
basically want is to read into the output of a long shellExecute 
function each second.

In details, I am calling shellExecute("pkexec dd if=/path/to/file 
of=/dev/sdx status=progress && sync");
It's a long running process and dd command prints how many bytes 
it has written in stdout continuously. I want to read and parse 
this output each second. How should I proceed?


More information about the Digitalmars-d-learn mailing list