Hmm, I don't know if ncurses can do what you're after, it's worth looking at. But I think you'll probably be looking at a more complex language like python and PyGtk, which I think it probably the 'easiest' combination.
Ive made a few basic 'frontend' (if you can call them that) bash scripts for some programs that require many -flags where it will prompt for each setting, and then run the program based on the user input.
Similar to the oldschool batch files, which any tom dick and pony could make, there wasnt really a GUI equivelent until AutoIT (as far as I know)
My question is, is there anything a complete newbie like me can use to make a GUI frontend, that will take the options inserted into fields in a GUI, and then launch an external program populating the various flags with what has been entered into the various boxes in the GUI?
Hope this makes sense?/
Cheers
RB
Hmm, I don't know if ncurses can do what you're after, it's worth looking at. But I think you'll probably be looking at a more complex language like python and PyGtk, which I think it probably the 'easiest' combination.
try gambas
Gambas - Gambas Almost Means Basic
very like visual basic,
BoX
How about building little C Sharp applications with Mono? C Sharp is an easy language to pick up for things like this I'd say.
A web page. It's the exact processing model you're after - stick a form on the screen, the user fills it in and hits "submit", the data is sent to a web server and calls the command-line application via system() or whatever. All you need is a small web server to listen out on a port (doesn't have to be port 80). Python has a web server module that lets you write a small web server in about 3 lines of code.
--
David Hicks
I was imagining something that would be distributable, rather than having to have them run a web server seems a bit complicated. Thanks though.
andbuilding little C Sharp applications with MonoIm afraid I am going to have to look up as I have no clue.gambas
Python again I have not dabbled with. But will give it a look.
if your using gnome you could allways use "zenity" your script can bring up a series of simple 1 line input boxes.
Zenity examples
it basically works by putting "var=$(zenity --entry --text "Does this work")", the users input is now in $var
RabbieBurns (04-03-2009)
RabbieBurns (04-03-2009)
RealBasic looks interesting, but it's $75.
REAL Software: REALbasic, Cross-Platform Development Environment
Here's a portal to some free stuff which might be of some use:
Free cross-platform programming Tools, free cross-platform compilers, programming languages, etc.
RabbieBurns (04-03-2009)
Is the machine that will be running the bash script a webserver? if it is write a simple PHP page with a form on it, then take the POST data and do this:
system("sh /path/to/script/script.sh -flag \"{$_POST['value']}\")
not sure if using \" will work, or if {$var['var']} will, but you get the idea
Xdialog is a nice simple frontend for bash scripts.
Xdialog
That is the website, gives you lots of examples so you can copy and paste (just highlight what one you want and the script appears below), its what we use to use before we went web-based and is really simple.
Jo
RabbieBurns (04-03-2009)
looking at dialog at the moment for servers without X on them...
Thanks, looks the business Ill give that a play tonight![]()
Please take a look to my BASH library: EasyBashGUI
sites.google.com/site/easybashgui
Goal is making very easy bash "GUI" script creation...
:-)
Instead of Xdialog, for the console - just use dialog.
Make your bash scripts user friendly using - dialog | All about Linux
Designing Simple front ends with dialog/Xdialog LG #101
There are currently 1 users browsing this thread. (0 members and 1 guests)