Results 1 to 2 of 2
Hello all, I'm new to the forum and to programming. I have written a simple Bash script to search for certain file types and automatically copy them to the required ...
- 01-16-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 1
Bash Newbie and kdialog
Hello all, I'm new to the forum and to programming. I have written a simple Bash script to search for certain file types and automatically copy them to the required destination. This works well but the Text based menu I'm using is a bit clunky. I am trying to change this for a GUI. I have found the kdialog tool and can generate a nice menu, however, The command:
kdialog --checklist "Blah blah:" 1 "option one" off 2 "option2" off 3 "option 3" off
Returns the value of the options clicked e.g. 1,2,3 or any combination of them depending which is selected.
So, my question is how do I parse the result of this command in my script or assign the result to an array so that I can use the result?
Or, is there a "How to" on what to do with the result?
Sorry if this is to simple a problem for this forum but I have managed to well and truley confuse myself.
Cheers
Mark
- 01-21-2008 #2Linux Newbie
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 211
Hi there, I know this is a long time coming and you have probably sorted by now, but if not have a look at this link - http://developer.kde.org/documentati...dialog/t1.html
wowbag1


Reply With Quote