<?xml version="1.0" encoding="windows-1252"?>
<node id="1001280" title="Re: Unable to store the command output from Net::SSH2. Please help." created="2012-10-28 13:19:49" updated="2012-10-28 13:19:49">
<type id="11">
note</type>
<author id="446266">
salva</author>
<data>
<field name="doctext">
&lt;c&gt;Net::SSH2::Channel::exec&lt;/c&gt; does not capture the output of the remote command, it just launches it. You have to use the &lt;c&gt;read&lt;/c&gt; method afterward to retrieve the output.

&lt;p&gt;On Unix/Linux systems [mod://Net::OpenSSH] is far easier to use. Or there is also [mod://Net::SSH::Any] that can work on top of Net::SSH2 and provides a simpler to use API, though it is still not a mature module.</field>
<field name="root_node">
1001275</field>
<field name="parent_node">
1001275</field>
</data>
</node>
