[#subprocess-Popen-communicate-0a]
= xref:subprocess.adoc[subprocess]::xref:subprocess/Popen.adoc[Popen]::communicate
:relfileprefix: ../../
:mrdocs:

Reads the child&apos;s output and error until it exits, without sending any input&period;

== Synopsis

Declared in `&lt;util&sol;subprocess&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::pair&lt;OutBuffer, ErrBuffer&gt;
communicate();
----

== Return Value

The captured output and error buffers&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
