[#subprocess-Popen-communicate-06b] = xref:subprocess.adoc[subprocess]::xref:subprocess/Popen.adoc[Popen]::communicate :relfileprefix: ../../ :mrdocs: Sends a string to the child, then reads its output and error until it exits. == Synopsis Declared in `<util/subprocess.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::pair<OutBuffer, ErrBuffer> communicate(std::string const& msg); ---- == Return Value The captured output and error buffers. == Parameters [cols="1,4"] |=== | Name| Description | *msg* | Text to send first. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#