Front-end for shell scripts
I have a collection of shell scripts that I would like to build front-ends for. The requirements are very simple... some input fields and a button to execute "script(input1, input2, etc.)". Where should I start for this? I apologize if this is trivial, this isn't my specialty :-) Thanks!
|
Just grab gtkdialog or xdialog (even gxmessage or xmessage for the simplest stuff). You could reinvent a more specific or straightforward wheel in the language of your choice, but they should suffice for most things.
-- Something in your phrasing made me think 'GUI' but, if you mean a console frontend then dialog/cdialog is okay. |
Quote:
here some useful example.. there is two buttons... i used here gtk.. Code:
#include <stdlib.h> cheers.. munna |
you may find tcl/tk ideal for this.
it's dead easy to use, (assuming you have it installed) type this into an xterm and you will get a button that does an ls Code:
wish |
Xdialog is the most complete implementation of what you want. It uses the GTK libs so it is pretty universally compatible. I use it hundreds of ways, but I've also found and use other tools like greq, gxmessage or gtk-shell for special needs.
|
Quote:
But both are cool and will cover most needs. :) |
If I understand the question correctly, Zenity is a pretty simple way of makin a GUI interface to a script.
|
zenity is gnome-specific, though - it may well work without the whole enchilada, but it needs a lot of gnome libs and junk like gconf. Bingo didn't say, so that may be okay but, odds are, with him running Slackware especially, gnome deps would be a negative.
|
Wow, thanks for all of the feedback! After the replies, I started reading more, and found that Slackware includes "dialog". It's been very simple to code, and I'm used to the interface from the Slackware utilities. There are probably limitations to what this tool can do, but it's working for me, and it doesn't need X, so it's very fast. Thanks again! ...Steve
|
Quote:
|
Gimp is just a gtk2 app - it doesn't actually require any gnome stuff. Just gtk2 and a truckload of multimedia libs. And since it's part of Slackware, all that's taken care of. :)
Actually, I stand somewhat corrected, though - looking at zenity on a Debian box, it would just install libart, a couple of libgnomecanvas libs, and scrollkeeper and libscrollkeeper. And I can't imagine scrollkeeper is an actual functional requisite. So it's not as much as I was thinking, but still some junk as opposed to the various other solutions. I was thinking it wanted gconf and a bunch of other garbage. |
All times are GMT -5. The time now is 05:09 AM. |