G T Smith wrote:
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...
Excellent, that looks very promising. I can already pick around in perl so this looks great. Thanks Manne & GT! -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org