Hi, -t won't work without a terminal, so that makes sense. If you redirect input of the command as:
DROPBEAR_PASSWORD=hello1234 dbclient hostname command < /dev/zero Does that work? It's a bit of a hack workaround, I need to figure what's going on properly. Cheers, Matt On Fri, Feb 11, 2011 at 02:42:51PM +0300, Anton Pavlenko wrote: > Hello. > It looks like I have the same problem as it was described in mail "How > to redirect the output of an command executed with dbclient on a > remote server? " more than half a year ago. > I have a some scripts, which automate different tasks using dbclient > with DROPBEAR_PASSWORD feature. Thanks a lot for this! > And now I'd like to move one of this script's to cron. > But I doesn't work. > It looks like problem not with stdout redirection, but with tty control it > self. > I have tried -t option and dbclient return this error: > > /path/dropbear-0.52/dbclient: Failed reading termmodes > > With regards, > Antony Pavlenko >
