On Sun, Dec 14, 2008 at 01:30:12PM +0200, Hai Zaar wrote: > Good day! > Why does dbclient reads data from tty and not from standard input? For > example, OpenSSH reads password from tty and data from standard input, > enabling piping command's stdout to remove host via ssh, like this: > $> echo asdf | ssh remotehost cat > asdf > And with dropbear we have: > $> echo asdf | dbclient remotehost cat > $> > However this hack works: > $> echo asdf > $(tty) | dbclient remotehost cat > asdf > $> > But we not always have a tty (i.e. dbclient run from system script). > Can I force dbclient to read data from stdin? (Or is there any > workaround of this problem?)
It looks like a bug with dbclient closing the connection too soon - I'll investigate. Matt