-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David C. Rankin wrote:
Listmates:
I have a number of BASH scripts that I would like to develop a menu to display and then call the ones that I want to call. For example, I have a number of scripts for mounting CIFS/SMB shares on a number of different servers. I would like to develop a simple interface that lists all the scripts and lets me pick one (or more) to execute. Something like calling a file-open dialog and passing the results to be executed would work.
For working in kde3 or from konsole/xterm what are the simple tools available? Is QT what I'm looking for as the gui? Is there a minimal c or c++ template/skeleton bit of code somewhere that would draw a basic window and let me add the file-open dialog to it?
For the text environment, is there a set of BASH menu scripts that would work? I guess I could create my own with ls, awk '{print NR,NR,$0 }', read, and case, but if I can avoid reinventing the wheel, that would be great.
Thanks for any links or suggestions you can provide.
Glade + Perl could be alternative to Johns suggestion. There is a module that will take a Glade XML and load it and plugin the GUI and script together. For the module... http://search.cpan.org/~tsch/Gtk2-GladeXML-1.005/GladeXML.pm For an examples of how to use it http://gtk2-perl.sourceforge.net/doc/intro/ http://www.perlmonks.org/?node_id=104432 Not pretty, but not quite as complex as sorting out a QT development configuration for scripting purposes... (launching bash scripts from perl is not that difficult the only major problem is probably the number of ways you are given to do it).... Oops forgot the most useful tutorial... http://live.gnome.org/GTK2-Perl/GladeXML/Tutorial - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkkFoJAACgkQasN0sSnLmgI6aACfXlXcJegfJPQ8J7DfNagdyWdq QqoAoO8Fstc3Q+AVJTJ1FaWseHxCcnW2 =KH7P -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org