using expect to dpkg-reconfigure

Eugeneapolinary Ju eugeneapolinary81 at yahoo.com
Sat Oct 10 07:51:31 UTC 2009


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"
----------------------------------------

# sh test.sh
hi
spawn dpkg-reconfigure dash
# 


but it ain't working :S

could someone give a little help with it? :D :S

thanks :\



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091010/51a2655a/attachment.html>


More information about the ubuntu-users mailing list