[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: load question/dialog in %post section
- From: "Avner BenHanoch" <avner kinor com>
- To: <kickstart-list redhat com>
- Subject: Re: load question/dialog in %post section
- Date: Sun, 11 May 2003 16:12:35 +0200
thanks a lot for the detailed explanation!
Before I sent the question I tried something like:
clear
echo "What's your name"
read name
echo your name is $name
sleep 3
I put it in the %post section of my ks.cfg file. (I used bash as the
interpreter for the %post section.)
Unfortunately my test failed. The screen remained blue (the regular
installation screen when in text mode). Nothing was shown to the user. The
installation stopped. I tried to enter text and press return to help it
continue, but it didn't notice me. I had to manually reboot the system
before the installation completed.
Do you think it should work and I had a mistake, or that I can't use
interactive shell script during installation?
If I hadn't mistake, do you think loading program that is written in one of
the languages you mentioned (python, perl, C, Java) will succeed to interact
with the user?
Again, thanks in advance,
Avner
----- Original Message -----
From: "John" <red computerdatasafe com au>
To: <kickstart-list redhat com>
Sent: Sunday, May 11, 2003 1:04 PM
Subject: Re: load question/dialog in %post section
> On Sun, 11 May 2003, Avner BenHanoch wrote:
>
> > Is there a way to ask the user question in the %post section and store
the
> > answer somewhere in the system.
> > The UI can be simple text, but a decent dialog will be nicer.
> >
> > If it is possible, can I add timeout to the question, so the system will
> > continue after some seconds?
>
> It is easy to ask questions. You can do something as simple as
> echo "What's your name"
> read name
> to really fancy things in any language you choose: python, perl, C, even
> Java (provided that you install it).
>
> You can use aids such as newt, slang, curses, dialog.
>
> Iimeouts can be easy or less easy, depending on the language you choose.
> Look to ways of using kill or kill() and handling signals. You _can_ do
> it in shell scripts, but it may be more elegant in other languages.
>
>
>
>
> --
> Please, reply only to the list.
>
> Join the "Linux Support by Small Businesses" list at
> http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
>
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list redhat com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]