<font size=2 face="sans-serif">Thanks Marco,</font>
<br>
<br><font size=2 face="sans-serif">I am adding the accept-license configuration
parameter to my config.yaml already , the product installer was waiting
at accept license (User has to type 1 for acceptance).I will try the yes
command in my charm to avoid the manual intervention.</font>
<br>
<br><font size=2 face="sans-serif">Thanks and Regards,<br>
Shilpa Kaul<br>
IBM India Pvt. Ltd<br>
Seat # EGLC 6F B067,<br>
C-Block, Embassy Golf Link,<br>
Intermediate Ring Road, Bangalore<br>
Email : shilkaul@in.ibm.com <br>
Mobile : 9900054908</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Marco Ceppi <marco@ondina.co></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Shilpa Kaul/India/IBM@IBMIN,
David Cheney <david.cheney@canonical.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">juju <juju@lists.ubuntu.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">06/22/2015 04:50 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: Handling
user manual intervention in juju</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>There are other charms that have this issue. One thing
to take note is you should /never/ really accept license without telling
the user what's going on. Other authors have solved this in a more simple
fashion. They've added a configuration option on the charm, "accept-license"
which is a boolean which defaults to False. The description of the configuration
option outlines where to read the license in full. Then, in your config-changed
hook don't proceed with the install script until the user flips accept-license
configuration option. You can usually get around the prompting of the install
script with the `yes` command. If the script expects you to just type "y"
then you can do `yes | ./install` if it needs a full "yes" or
another phrase you can change that using the yes command `yes "yes"
| ./install` as an example.</font>
<br>
<br><font size=3>Thanks,</font>
<br><font size=3>Marco Ceppi</font>
<br>
<br><font size=3>On Mon, Jun 22, 2015 at 5:55 AM Shilpa Kaul <</font><a href=mailto:shilkaul@in.ibm.com><font size=3 color=blue><u>shilkaul@in.ibm.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif">Thanks David,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
 I will try to explore expect(1) and see how I can use it in my code
, my product is not java </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Thanks and Regards,<br>
Shilpa Kaul<br>
IBM India Pvt. Ltd<br>
Seat # EGLC 6F B067,<br>
C-Block, Embassy Golf Link,<br>
Intermediate Ring Road, Bangalore<br>
Email : </font><a href=mailto:shilkaul@in.ibm.com target=_blank><font size=2 color=blue face="sans-serif"><u>shilkaul@in.ibm.com</u></font></a><font size=2 face="sans-serif">
<br>
Mobile : 9900054908</font><font size=3> <br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From:        </font><font size=1 face="sans-serif">David
Cheney <</font><a href=mailto:david.cheney@canonical.com target=_blank><font size=1 color=blue face="sans-serif"><u>david.cheney@canonical.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To:        </font><font size=1 face="sans-serif">Shilpa
Kaul/India/IBM@IBMIN</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Cc:        </font><font size=1 face="sans-serif">juju
<</font><a href=mailto:juju@lists.ubuntu.com target=_blank><font size=1 color=blue face="sans-serif"><u>juju@lists.ubuntu.com</u></font></a><font size=1 face="sans-serif">>,
Suchitra Venugopal1/India/IBM@IBMIN</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date:        </font><font size=1 face="sans-serif">06/22/2015
03:18 PM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject:        </font><font size=1 face="sans-serif">Re:
Handling user manual intervention in juju</font><font size=3> <br>
</font>
<hr noshade><font size=3><br>
<br>
</font><tt><font size=2><br>
You could try expect(1).<br>
<br>
Is the product java by any chance ?<br>
<br>
On Mon, Jun 22, 2015 at 7:44 PM, Shilpa Kaul <</font></tt><a href=mailto:shilkaul@in.ibm.com target=_blank><tt><font size=2 color=blue><u>shilkaul@in.ibm.com</u></font></tt></a><tt><font size=2>>
wrote:<br>
> Hi Team,<br>
><br>
> Can you please help me in finding a solution for a scenario where
product<br>
> configuration or installation involves manual intervention and product
does<br>
> not support silent method for that step.How can this be handled in
a charm.<br>
><br>
> For example , consider a scenario where a product is installed and<br>
> configured using ./install command. The command takes care of all
install<br>
> and configuration but it stops at Accept license step. The user has
to<br>
> either enter 1 for accepting license or 2 for not accepting license.
Till<br>
> now I have not got any equivalent command line option to (ie waiting
for<br>
> license to be accepted) accept the license by default so that install<br>
> process does not stop for any manual user intervention.<br>
><br>
> How can charm handle such type of scenarios , any insights on this
please.<br>
><br>
> Thanks and Regards,<br>
> Shilpa Kaul<br>
><br>
><br>
> --<br>
> Juju mailing list<br>
> </font></tt><a href=mailto:Juju@lists.ubuntu.com target=_blank><tt><font size=2 color=blue><u>Juju@lists.ubuntu.com</u></font></tt></a><tt><font size=2><br>
> Modify settings or unsubscribe at:<br>
> </font></tt><a href=https://lists.ubuntu.com/mailman/listinfo/juju target=_blank><tt><font size=2 color=blue><u>https://lists.ubuntu.com/mailman/listinfo/juju</u></font></tt></a><tt><font size=2><br>
><br>
</font></tt><font size=3><br>
<br>
--<br>
Juju mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Juju@lists.ubuntu.com target=_blank><font size=3 color=blue><u>Juju@lists.ubuntu.com</u></font></a><font size=3><br>
Modify settings or unsubscribe at: </font><a href=https://lists.ubuntu.com/mailman/listinfo/juju target=_blank><font size=3 color=blue><u>https://lists.ubuntu.com/mailman/listinfo/juju</u></font></a>
<br>