Hello,<br>Thanks a lot for this idea. /dev/zero doesn'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"><<a href="mailto:matt@ucc.asn.au">matt@ucc.asn.au</a>></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'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 < /dev/zero<br>
<br>
Does that work? It's a bit of a hack workaround, I need to<br>
figure what'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>
> Hello.<br>
> It looks like I have the same problem as it was described in mail "How<br>
> to redirect the output of an command executed with dbclient on a<br>
> remote server? " more than half a year ago.<br>
> I have a some scripts, which automate different tasks using dbclient<br>
> with DROPBEAR_PASSWORD feature. Thanks a lot for this!<br>
> And now I'd like to move one of this script's to cron.<br>
> But I doesn't work.<br>
> It looks like problem not with stdout redirection, but with tty control it self.<br>
> I have tried -t option and dbclient return this error:<br>
><br>
> /path/dropbear-0.52/dbclient: Failed reading termmodes<br>
><br>
> With regards,<br>
> Antony Pavlenko<br>
><br>
</div></div></blockquote></div><br>