Just edit the Java install script beforehand though it ends in .bin its actually wrapped in a /bin/sh script the binary portion of the installer is actually uuencoded in the script.
From: [email protected] [mailto:[email protected]] On Behalf Of Jorge Vargas Sent: Thursday, April 05, 2012 4:53 PM To: Jeff Forcier Cc: [email protected] Subject: Re: [Fab-user] Is there a way to use fab to install programs on remote machine? 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]<mailto:[email protected]>> wrote: On Thu, Apr 5, 2012 at 1:40 PM, Qitong Hu <[email protected]<mailto:[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]<mailto:[email protected]> https://lists.nongnu.org/mailman/listinfo/fab-user Please visit our website for important disclaimers/disclosures regarding Knight's products and services: http://knight.com/KnightEmailDisclaimer.html
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
