Hello,<br>Thanks a lot for this idea. /dev/zero doesn&#39;t work, but /dev/ptmx work great at Linux and Solaris.<br><br>With regards,<br>Antony Pavlenko<br><br><div class="gmail_quote">On Sat, Feb 12, 2011 at 6:01 AM, Matt Johnston <span dir="ltr">&lt;<a href="mailto:matt@ucc.asn.au">matt@ucc.asn.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
-t won&#39;t work without a terminal, so that makes sense. If<br>
you redirect input of the command as:<br>
<br>
DROPBEAR_PASSWORD=hello1234 dbclient hostname command &lt; /dev/zero<br>
<br>
Does that work? It&#39;s a bit of a hack workaround, I need to<br>
figure what&#39;s going on properly.<br>
<br>
Cheers,<br>
<font color="#888888">Matt<br>
</font><div><div></div><div class="h5"><br>
On Fri, Feb 11, 2011 at 02:42:51PM +0300, Anton Pavlenko wrote:<br>
&gt; Hello.<br>
&gt; It looks like I have the same problem as it was described in mail &quot;How<br>
&gt; to redirect the output of an command executed with dbclient on a<br>
&gt; remote server? &quot; more than half a year ago.<br>
&gt; I have a some scripts, which automate different tasks using dbclient<br>
&gt; with DROPBEAR_PASSWORD feature. Thanks a lot for this!<br>
&gt; And now I&#39;d like to move one of this script&#39;s to cron.<br>
&gt; But I doesn&#39;t work.<br>
&gt; It looks like problem not with stdout redirection, but with tty control it self.<br>
&gt; I have tried -t option and dbclient return this error:<br>
&gt;<br>
&gt; /path/dropbear-0.52/dbclient: Failed reading termmodes<br>
&gt;<br>
&gt; With regards,<br>
&gt; Antony Pavlenko<br>
&gt;<br>
</div></div></blockquote></div><br>