sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] Using dialog for the net-conf spell
- From: Juuso Alasuutari <iuso AT sourcemage.org>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] Using dialog for the net-conf spell
- Date: Wed, 12 Apr 2006 19:55:48 +0300
On Wednesday 12 April 2006 05:29, Matthew Clark wrote:
> I recently began trying to improve the net-tools spell by replacing that
> long list of questions with a dialog. Since spells must be able to run
> without user intervention, I have made it so that a question is asked to
> allow the user to use the dialog if they wish. Answering N (which is
> default) to the question will bypass the dialog and answer Y to all
> components of net-tools (except moutnnetwork and network, of course), as
> the spell is currently written to do.
>
> Anyway, I took a good long look at the apache2 spell to see how they did
> it, as my bash scripting is crap. I am at the point now, in the devel
> grimoire, that I can't seem to get the responses to dialog to make the
> spell work.
>
> Since I am limited in my ability to script it well, I am asking a fellow
> developer (or anyone who can bash-script lika muthaphukka) to take a look.
>
> Any takers? The WIP file has been in devel for quite a while, and I'm
> about to give up and revert...
>
>
>
> - Matthew Clark (MaffooClock)
I took a quick look at the options directory, and it seems that the problem
is
in your variables having spaces in them. Dialog will freak out because it
counts the words as separate entries. So they should be "Use_this_and_that?"
and so on.
Hope this helps!
Juuso
-
[SM-Discuss] Using dialog for the net-conf spell,
Matthew Clark, 04/11/2006
- Re: [SM-Discuss] Using dialog for the net-conf spell, Juuso Alasuutari, 04/12/2006
-
Re: [SM-Discuss] Using dialog for the net-conf spell,
Karsten Behrmann, 04/12/2006
-
Re: [SM-Discuss] Using dialog for the net-conf spell,
Andraž "ruskie" Levstik, 04/12/2006
-
Re: [SM-Discuss] Using dialog for the net-conf spell,
Eric Sandall, 04/12/2006
- Re: [SM-Discuss] Using dialog for the net-conf spell, Matthew Clark, 04/12/2006
-
Re: [SM-Discuss] Using dialog for the net-conf spell,
Eric Sandall, 04/12/2006
- Re: [SM-Discuss] Using dialog for the net-conf spell, Karsten Behrmann, 04/13/2006
-
Re: [SM-Discuss] Using dialog for the net-conf spell,
Andraž "ruskie" Levstik, 04/12/2006
-
Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell),
Seth Woolley, 04/12/2006
-
Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell),
Andrew, 04/12/2006
-
Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell),
Seth Woolley, 04/12/2006
- Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell), Andraž "ruskie" Levstik, 04/13/2006
- Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell), David Kowis, 04/14/2006
-
Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell),
Seth Woolley, 04/12/2006
-
Re: [SM-Discuss] minimize global effects in CONFIGURE and DEPENDS (Was: Using dialog for the net-conf spell),
Andrew, 04/12/2006
Archive powered by MHonArc 2.6.24.