[SLL] Can Grub Be Programmed without Expect?

Bill Campbell bill at celestial.com
Mon Oct 15 16:06:22 PDT 2007


On Mon, Oct 15, 2007, xeno at eskimo.com wrote:
>
>I would think, I could set up a perfectly good grub.conf file somewhere,
>and then from the shell do something like:
>
>grub --config-file=mygrubbyfile.conf
>
>and perhaps some extra switches if it is really menacingly hard to use
>and it would just execute the file and that would be the end of it.
>Instead it takes me into the little grubland with the prompt, etc.  I've
>looked far too long for the more simple case to no avail.  Is there
>anybody out there in Linuxland who knows if it is even possible to
>program with grub without using an expect script?  (Perhaps they even
>sabotage expect. I'd better not speak too soon.)  I hope I am missing
>something obvious here.

What's wrong with ``grub --batch ...''?

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

Giving money and power to government is like giving whiskey and car keys to
teenage boys -- P.J. O'Rourke


More information about the linux-list mailing list