using expect to dpkg-reconfigure

Didar Hossain didar.hossain at gmail.com
Sat Oct 10 08:24:41 UTC 2009


On Sat, Oct 10, 2009 at 1:21 PM, Eugeneapolinary Ju <
eugeneapolinary81 at yahoo.com> wrote:

> I tried to use expect, just to give "dpkg-reconfigure dash" a "no" answer.
>
> I'm here right now:
>
> ----------------------------------------
> # cat test.sh
>
> #!/bin/bash
>
> echo "hi"
>
> /usr/bin/expect - << EndMark
> spawn dpkg-reconfigure dash
> expect "*"
> send "no"
> EndMark
> exit 0
>
> echo "done"
>


Does changing to -

spawn dpkg-reconfigure -freadline dash

... help?

Regards,
Didar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091010/a79e96dd/attachment.html>


More information about the ubuntu-users mailing list