Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-15-2006, 02:31 PM   #1
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Rep: Reputation: 15
kdialog --menu command

I have a bash variable with a kdialog command in it. I am having problems getting it to display correctly.
if i run the command straight from a shell it works perfect but from inside the script i cannot get it to display right. here is an example of the variable where the number is the value i want returned and the quoted text is the menu item:

kdialog --menu "What did you want:" 6766 "ribbit (frog sound)/ " 14560 "frog/ " 14561 "frogman/ " 19520 "red frog crab/ " 23000 "tree frog/ " 27076 "singing frog/ " 29587 "frog/(P)/ " 29588 "frog/ " 29592 "curved wooden support on top" 29593 "of) leapfrog/ " 29594 "leapfrog/ " 29595 "(n) curved wooden support on" 29596 "tree frog (toad)/ " 29909 "horned frog/ " 35404 "bullfrog/ " 67568 "green (tree) frog/ " 68077 "brown frog/ " 80272 "railway frog/ " 81100 "bullfrog/edible frog/ " 87114 "(game of) leapfrog/ " 87115 "leapfrogging/ " 90138 "(1) leaping/activity/(2) leapfrog (over a" 108614 "curved wooden support on top"

any ideas? thanks
Old 01-16-2006, 07:52 AM   #2
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
I can't reproduce your problem. I wrote this very small script:
TEST=$(.your complete kdialog command here.)
echo "awnser: "$TEST
and it worked perfectly...

.-=~ iluvatar ~=-.
Old 01-17-2006, 02:37 PM   #3
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Original Poster
Rep: Reputation: 15
That doesnt seem to be working either. If you run through this set of commands you can see what i mean better.

jeff@linux:~> KDIALOGCOMMAND="kdialog --menu \"What did you want:\" a \"hi\""
jeff@linux:~> echo $KDIALOGCOMMAND
kdialog --menu "What did you want:" a "hi"
jeff@linux:~> `$KDIALOGCOMMAND`
jeff@linux:~> kdialog --menu "What did you want:" a "hi"


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
How to show a variable menu list in Kdialog? linx win Debian 1 11-26-2005 11:33 AM
Main menu command RedRaven Fedora 0 04-14-2005 01:53 AM
kdialog replacement Khabi Linux - Software 2 04-09-2005 02:10 AM
Variable info in kdialog? Klas Programming 1 01-08-2005 09:58 AM
menu item (command) to use root Tyir Linux - General 1 03-16-2004 10:53 AM

All times are GMT -5. The time now is 07:38 AM.

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