I want to write an interactive function to
- Call an external binary
- Write the output of the binary into a buffer
- Process the buffer to extracts args for next call
- Call another external binary using args
- Display output of second call
Step 3 should only be called after step 2 is complete.
How can I do this?