fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Is there a way to use fab to install programs on remote m


From: Jasper van den Bosch
Subject: Re: [Fab-user] Is there a way to use fab to install programs on remote machine?
Date: Fri, 6 Apr 2012 00:16:23 +0200

Did you try sending "SPACE"? This sometimes activates the currently selected button.

On 5 April 2012 22:44, Jeff Forcier <address@hidden> wrote:
On Thu, Apr 5, 2012 at 1:40 PM, Qitong Hu <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user



--
I'd love to see your attachment, but please use OpenDocument, not a proprietary format like docx. It's an international standard, endorsed by the EU, and implemented in many office suites, such as LibreOffice, and commercial products from Oracle, Sun, IBM and Microsoft (from 2007).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]