Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    1

    Smile 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

  2. #2
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...