Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] Re: sorcery-1.0.6 torture test

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Dufflebunk <dufflebunk AT dufflebunk.homeip.net>
  • To: Eric Sandall <eric AT sandall.us>
  • Cc: sm-sorcery <sm-sorcery AT lists.ibiblio.org>
  • Subject: Re: [SM-Sorcery] Re: sorcery-1.0.6 torture test
  • Date: Tue, 27 May 2003 21:24:43 -0000

Ok, did someone mess w/ the sorcery script? The syntax in that is very
tricky. It looks like it's looking for a program called $DIALOGPROG,
rather than a program call the value of $DIALOGPROG.

On Tue, 2003-05-27 at 17:19, Eric Sandall wrote:
> <snip>
> >> On Tuesday May 27 2003 12:32, you wrote:
> >> hi,
> >>
> >> I've installed lockexec on my slackware 9.0 and all seems ok.
> >> I did a torture test on sorcery-1.0.6 without grimoire.
> >>
> >> When I hit Background execution:
> >>
> >> line 1329 $DIALOGPROG: command not found.
> >>
> >> any idea please?
> >>
> >> again thanks for your work.
> >>
> >> ar.
>
> I believe this is a problem with sorcery and not your system, as on both
> 1.0.5 and 1.0.6 I get the same error when I try to use Cabal or Background
> on all of my workstations (still haven't tried the SPARC, will be next
> week probably).
>
> Using Cabal:
> /usr/sbin/sorcery: line 1: $DIALOGPROG: command not found
>
> Using Background:
> /usr/sbin/sorcery: line 1329: $DIALOGPROG: command not found
>
> The only location DIALOGPROG is referenced is here:
> /usr/sbin/sorcery:1451
>
> if [ "$UID" == 0 ]; then
> . /etc/sorcery/config
> DIALOG='$DIALOGPROG --backtitle "Sorcery Spell Management Utility"
> --stdout'
>
> SORCERY_VERSION=`cat /etc/sorcery/version`
> SORCERY_DIR=`codex_find_spell_by_name sorcery-$SORCERY_BRANCH`
> #SORCERY_DETAILS="$SORCERY_DIR/DETAILS"
> main $*
> else
> echo "Enter the root password, please."
> su - -c "DISPLAY=$DISPLAY PATH=$PATH $0 $*"
> fi
>
> Using the single-quote has the effect of not translating variables, but I
> am having problems getting it to work with using a double-quote in place
> of the single-quote.
>
> If I change the offending line to:
> DIALOG="$DIALOGPROG --backtitle "Sorcery Spell Management Utility"
> --stdout"
>
> I get:
> /usr/sbin/sorcery: line 1451: Spell: command not found
> /usr/sbin/sorcery: line 1: --title: command not found
>
> If I change it to:
> DIALOG="$DIALOGPROG --backtitle \"Sorcery Spell Management Utility\"
> --stdout"
>
> Or:
> DIALOG="$DIALOGPROG --backtitle 'Sorcery Spell Management Utility'
> --stdout"
>
> I get:
> Error: Unknown option Spell.
> Use --help to list options.
>
>
> Have a sorcerous day.
>
> As you can see, I'm not much of a basher, but I may figure this out
> eventually. If someone more skilled in the ways of BASH cares to take
> this on, feel free. :)
>
> -One of Four
> a.k.a. sandalle





Archive powered by MHonArc 2.6.24.

Top of Page