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

Sends a byte vector to the child, then reads its output and error until it exits&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(std::vector&lt;char&gt; const& msg);
----

== Return Value

The captured output and error buffers&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg*
| Bytes to send first&period;
|===


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