using expect to dpkg-reconfigure
Eugeneapolinary Ju
eugeneapolinary81 at yahoo.com
Sat Oct 10 09:33:47 UTC 2009
# sh test.sh
hi
spawn dpkg-reconfigure -freadline dash
#
sorry, no
If I just type: "dpkg-reconfigure dash" it still on "Yes" by default, it doesn't change to "no"
--- On Sat, 10/10/09, Didar Hossain <didar.hossain at gmail.com> wrote:
From: Didar Hossain <didar.hossain at gmail.com>
Subject: Re: using expect to dpkg-reconfigure
To: "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
Date: Saturday, October 10, 2009, 8:24 AM
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
-----Inline Attachment Follows-----
--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091010/9f997ce8/attachment.html>
More information about the ubuntu-users
mailing list