title: Send String over netcat connection
body: <p>I have two virtual machines open, one is listening on the connection, the other connects with <code>nc &lt;ip&gt; &lt;port&gt;</code> from a python subprocess call. I want to send just 1 line of text over the connection then close it. I know how to send a file cat <code>cat &lt;file&gt; | nc &lt;ip&gt; &lt;port&gt;</code> but how can I just send a line of text in the nc command (without using files)?</p>