dbclient from crontab?
Anton Pavlenko
anton at pavlenko.net
Mon Feb 14 14:33:08 WST 2011
Hello,
Thanks a lot for this idea. /dev/zero doesn't work, but /dev/ptmx work great
at Linux and Solaris.
With regards,
Antony Pavlenko
On Sat, Feb 12, 2011 at 6:01 AM, Matt Johnston <matt at ucc.asn.au> wrote:
> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20110214/9b85023c/attachment.htm
More information about the Dropbear
mailing list