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: "Eric Sandall" <eric AT sandall.us>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery] Re: sorcery-1.0.6 torture test
  • Date: Tue, 27 May 2003 14:19:29 -0700 (PDT)

<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

--
PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61

Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/




Archive powered by MHonArc 2.6.24.

Top of Page