This is a quite basic but essential operation: Launch a command, and get its output in a string.
There are various solutions.
- One is to redirect the output to a temporary file, and then read its content. But this is not convenient, since it require disk access, and you can not always hide the process.

