Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 649
Mar'o Avatar asked Oct 28 '25 16:10

Mar'o


1 Answers

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.

like image 101
Mark Byers Avatar answered Oct 30 '25 04:10

Mark Byers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!