Jeff has great points, you should.try those. However if that fails you
should.try pexpect which works great with fabric
On Apr 5, 2012 4:45 PM, "Jeff Forcier" <[email protected]> wrote:

> On Thu, Apr 5, 2012 at 1:40 PM, Qitong Hu <[email protected]>
> wrote:
> > I'm wondering if there is a way to "click"
> > the OK
>
> Nope. Fabric's not an expect clone, nor does it know how to move the
> mouse or anything :)
>
> > or maybe add something in the
> > command to make it default accept?
>
> This is always the right answer (for any scripting tool -- not just
> Fabric.) You need to understand the installer well enough to figure
> out how to script it so it can be run non-interactively.
>
> For example, on Debian Linux systems you can use the "debconf" system
> to pre-set any question an installer might try to prompt you for.
> Takes a little bit of researching to find out which settings those are
> for the package in question, but it is definitely doable.
>
> Sometimes it's enough just to tell the package manager to run
> non-interactively (e.g. DEBIAN_FRONTEND=noninteractive apt-get install
> xyz) or to give it a "always say yes please" flag like -y. Many
> packages will look at these hints and skip prompting you entirely.
>
> But again, this is all 100% Fabric agnostic and depends entirely on
> your remote system :)
>
> Good luck,
> Jeff
>
>
> --
> Jeff Forcier
> Unix sysadmin; Python/Ruby engineer
> http://bitprophet.org
>
> _______________________________________________
> Fab-user mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/fab-user
>
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to