<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><p>Solved!!<br></p><p><br></p><p>#!/bin/bash</p>
<p>export DEBIAN_FRONTEND=readline</p>
<p>/usr/bin/expect - << ENDMARK > /dev/null<br>
spawn dpkg-reconfigure dash<br>
send "n"<br>
send "\n"<br>
interact<br>
ENDMARK</p>
<p>export DEBIAN_FRONTEND=dialog</p><p><br></p><p>thank you!<br></p><br><br>--- On <b>Sat, 10/10/09, Eugeneapolinary Ju <i><eugeneapolinary81@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Eugeneapolinary Ju <eugeneapolinary81@yahoo.com><br>Subject: Re: using expect to dpkg-reconfigure<br>To: "not for general discussionsUbuntu user technical support" <ubuntu-users@lists.ubuntu.com><br>Date: Saturday, October 10, 2009, 9:33 AM<br><br><div id="yiv1723943483"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top"># sh test.sh<br>hi<br>spawn dpkg-reconfigure -freadline dash<br># <br><br><br>sorry, no<br>If I just type:
"dpkg-reconfigure dash" it still on "Yes" by default, it doesn't change to "no"<br><br><br>--- On <b>Sat, 10/10/09, Didar Hossain <i><didar.hossain@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Didar Hossain <didar.hossain@gmail.com><br>Subject: Re: using expect to dpkg-reconfigure<br>To: "Ubuntu user technical support, not for general discussions" <ubuntu-users@lists.ubuntu.com><br>Date: Saturday, October 10, 2009, 8:24 AM<br><br><div id="yiv1159637162"><br><br><div class="gmail_quote">On Sat, Oct 10, 2009 at 1:21 PM, Eugeneapolinary Ju <span dir="ltr"><<a rel="nofollow">eugeneapolinary81@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
I tried to use expect, just to give "dpkg-reconfigure dash" a "no" answer.<br><br>I'm here right now:<br><br>----------------------------------------<br># cat test.sh<br><br>#!/bin/bash<br><br>echo "hi"<br>
<br>/usr/bin/expect - << EndMark<br>spawn dpkg-reconfigure dash<br>expect "*"<br>send "no"<br>EndMark<br>exit 0<br><br>echo "done"<br></td></tr></tbody></table></blockquote></div><br><br>
Does changing to -<br><br>spawn dpkg-reconfigure -freadline dash<br><br>... help?<br><br>Regards,<br>Didar<br><br><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">-- <br>ubuntu-users mailing list<br><a rel="nofollow">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a rel="nofollow" target="_blank" href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></div></blockquote></td></tr></tbody></table><br>
</div></blockquote></td></tr></table><br>