tags:

views:

127

answers:

5

Hello...

I have some bash scripts, some simple ones to copy, search, write lines to files and so on.

I am an Ubuntu. and I've searched in google, but it seems that everybody is doing that on python. I could do these on python, but since I am not a python programmer, I just know the basics. I have no idea of how calling a sh script from a GUI written on python.

If someone has a link or something to say, please drop a line.

regards, Mario

A: 

No one does serious GUI apps in bash. Suck it up and learn a programming language.

Ignacio Vazquez-Abrams
don't gotta be mean about it...
Ian
Not being mean, just stating a fact.
Ignacio Vazquez-Abrams
It's true that no one does serious GUI work with bash scripts, but the OP doesn't claim to be attempting that. Yours is a non-answer, and snarky to boot.
vezult
Ignacio Said "No one does serious GUI apps in bash. Suck it up and learn a programming language."Did you understand my question Ignacio? Do you know if I already know any programming language? If you don't understand a question and you'd like to answer, ask for more information.Don't judge something without enough knowledge about it.have a nice day,Mario
Mar'o
A: 

basically, all bash does is start other programs (and do symbolic math on the command line). So no, you're going to have to involve some other program.

Ian
+5  A: 

Is there a way of having a GUI for bash scripts?

You can try using Zenity.

a tool that allows you to display GTK dialog boxes in commandline and shell scripts.


I have no idea of how calling a sh script from a GUI written on python.

You can do this using subprocess.

Personally I would recommend that you learn Python and call the scripts from Python instead of trying to write the GUI in Bash.

Mark Byers
Thank you Mark.. it was exactly what I looking for. ;)
Mar'o
A: 

I do not fully understand what you want. Calling a shell script from python, is like calling any executable from python, using os.system.

In fact there're several 'guis' for bash, namely zenity and others.

Drakosha
A: 

If you want to be able to display dialog boxes, calendar selection boxes, etc. you might want to take a look at dialog and whiptail. They are not graphical - they use text mode - but they may be adequate for your needs.

Dennis Williamson