LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-22-2008, 08:50 AM   #1
hellreaper
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Rep: Reputation: 0
Error with Xdialog [FIXED]


Hello,
I installed Xdialog : /usr/sbin/urpmi xdialog
and i installed it

Then i try to execute this script: . hello.sh

#!/bin/bash
DIALOG=${DIALOG=xdialog}
fichtemp=`tempfile 2>/dev/null` || fichtemp=/tmp/test$$
trap "rm -f $fichtemp" 0 1 2 5 35
$DIALOG --clear --title "Gestionnaire d'aministration" \
--menu "Choisissez le menu auquel vous souhaitez accèder :" 20 51 4 \
"1" "Gestion des utilisateurs et des groupes" \
"2" "Gestion du réseau" \
"3" "Gestion de l'heure système" \
"4" "Montage de volumes réseau" \
"5" "Planification de tâches" \
"6" "Gestion des disques" \
"7" "Gestion du fstab" \
"8" "Gestion des modules du kernel" \
"9" "Affichage de statistiques systèmes" \
"10" "Gestion de la langue" \
"11" "Gestionnaire de packages" 2> $fichtemp
valret=$?
choix=`cat $fichtemp`
case $valret in
0) if [ $choix = 1 ]; then
source dialoguser.sh
elif [ $choix = 2 ]; then
source dialogres.sh
elif [ $choix = 3 ]; then
source dialoghour.sh
elif [ $choix = 4 ]; then
source dialogvol.sh
elif [ $choix = 5 ]; then
source dialogtach.sh
elif [ $choix = 6 ]; then
source dialogdisk.sh
elif [ $choix = 7 ]; then
source dialogfstab.sh
elif [ $choix = 8 ]; then
source dialogker.sh
elif [ $choix = 9 ]; then
source dialogsys.sh
elif [ $choix = 10 ]; then
source dialoglang.sh
elif [ $choix = 11 ]; then
source dialogpack.sh
fi;;
1) echo "Appuyé sur Annuler.";;
255) echo "Appuyé sur Echap.";;
esac

and nothing happens:

root@localhost supinfo]# ls
Bureau/ Documents/ Images/ Téléchargement/ Vidéos/
Desktop/ hello.sh Musique/ tmp/
[root@localhost supinfo]# . hello.sh
[root@localhost supinfo]#

PS i found my error it comes form my second line : DIALOG=${DIALOG=xdialog}

Last edited by hellreaper; 02-23-2008 at 02:16 AM. Reason: Found error
 
Old 02-23-2008, 06:04 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by hellreaper View Post
i found my error it comes form my second line : DIALOG=${DIALOG=xdialog}
Good you found that out yourself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xdialog/Bash Help, Please. br00tal Slackware 8 12-03-2007 02:42 PM
Winetools and Xdialog kerryhall Linux - Software 2 04-28-2006 02:38 PM
Need help with Xdialog justintime32 Linux - Software 1 06-17-2005 02:17 PM
Using Xdialog to su death_au Linux - Newbie 1 05-31-2005 10:41 PM
Xdialog --progress bendeco13 Linux - General 0 10-27-2004 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration