Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a shell script which installs a program in RedHat. I need to add a GUI for entering some parameters so that it looks like an installation wizard . I tried Xdialog, Zenity, and Yad, but they each only support a single data input per window; I need to display all the steps in a single window. What can I use to do that?

share|improve this question
    
If they aren't ran concurrently shouldn't the dialogs be displayed one after another? (eg. zenity; zenity) –  vitiv Sep 10 '12 at 7:58
    
Yes, it should not. Need to display all in one window and redraw it . –  frost_romka Sep 10 '12 at 8:05
add comment

4 Answers

Bash wasn't realy designed with this kind of persistence in mind. Nonetheless you need to use full-blown GTK. You could either code your GUI in an actual programming language (C, C++, Python, etc) designing with a bash interface in mind like some D-Bus or other IPC mechanism to communicate with the running application.

Or you could code GTK directly in Bash with the use of a some binding such as http://www.gtk-server.org

EDIT: Just an opinion, but the second option feels like a bit of an overkill to me.

share|improve this answer
    
Thank . I would think . –  frost_romka Sep 10 '12 at 8:30
1  
As far as IPC goes D-Bus is a bit too much for a simple application, I suggest using pipes. –  vitiv Sep 11 '12 at 5:45
add comment

Not a GUI solution, however it may be very usefull for you. Try such things as whiptail or dialog. It can even display a progress of current installation, and all will be within one console window.

Some pictures.

share|improve this answer
    
whiptail and dialog were chosen first . Focus on them . –  frost_romka Sep 11 '12 at 5:36
add comment
up vote 1 down vote accepted

The best choice http://code.google.com/p/gtkdialog/

share|improve this answer
1  
Can you add some more details for future users? –  Alex Chamberlain Sep 13 '12 at 8:37
    
I still study with library . but if my experience is useful. I will add more details . –  frost_romka Sep 13 '12 at 13:42
add comment

The reason shell script not providing full fledged UI is that the response of the UI will be slow since shell script is composed of script files rather than the binaries. The solution is to use python (or any other language ) to create front end UI and then call the scripts within it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.