dialog menu script. please HELP


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting dialog menu script. please HELP
# 1  
Old 05-03-2008
dialog menu script. please HELP

hello.

i want to create a useradd dialog menu.
i cannot make a single menu with 4 box inputs ( user, pass, fullname, shell ) because the dialog utility is either limited or either i know to less about using the dialog utility.
from what i see it only allows me to post these 4 boxes one by one, i mean first i input the user, i hit enter, a new dialog box apears for password, again i hit enter for fullname, etc.

can't i just use dialog to build more boxes in a single menu interface ? like anaconda does on redhat for example.

thanks.
# 2  
Old 05-04-2008
cmon

cmon, nobody?
# 3  
Old 05-04-2008
Pls don't bump-up posts - it's against the Rules
# 4  
Old 05-18-2009
dialog with mixedform option

Most probably you don't need it anymore but maybe it will help to other guys. Here is a sample how it can be done :

Code:
/usr/bin/dialog --title "Mixed Form" --backtitle "Mixed Form" --insecure \
                --mixedform "This is simple mixedform :" 15 50 0 \
                "User name       : " 1 1 "user" 1 20 20 0 0 \
                "Password        :"      2 1    "pass1"  2 20  20 0 1 \
                "Retype Password :"      3 1    "pass2"  3 20  20 0 1 2> /tmp/file

P.S. Be careful option --mixedform is only available in latest dialog command.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Gnome 3.28.3 menu item dissapears under the system menu

I installed CentOS 8 with Gnome 3.28.2 and I noticed that the "switch user" menu item disappeared from under the system menu of Gnome classic (Both X11 & Wayland). I checked google and this problem seems to have a history going back several releases of Gnome. Unfortunately, I never found a... (1 Reply)
Discussion started by: bodisha
1 Replies

2. Homework & Coursework Questions

Dialog menu with array

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi I'm currently making a schoolproject and I'm stuck with reading an array into the possible options of a... (1 Reply)
Discussion started by: dan007255
1 Replies

3. Shell Programming and Scripting

Dialog menu with array

Hi I'm currently making a schoolproject and I'm stuck with reading an array into the possible options of a menu dialog. What I mean is: I've put some values into an array, I want all these values from the array to be possible to be selected in the menu. Please help :) I'm programming in Debian... (1 Reply)
Discussion started by: dan007255
1 Replies

4. Shell Programming and Scripting

Dialog --menu limitation for the entries for selection

Hi Guys, Please pardon me if this is a silly question, but I have tried to find an answer and going through the man page and failed to get one. I have created a menu driven script with dialog --menu option. Everything is working as expeted, however, it seems that if I have more than 10... (1 Reply)
Discussion started by: ww889
1 Replies

5. Shell Programming and Scripting

Dialog script for copying a file

Hello, I'm trying to write a script in Dialog for configuring a router. I basically need the user to select from a list of say 4 options, confirm the option and then copy the configuration files, depending on the choice to the HDD and then reboot (I'm hoping to boot from a USB stick). The... (0 Replies)
Discussion started by: pm77
0 Replies

6. Shell Programming and Scripting

Script to call a menu script and redirect each option to a text file

Hello, I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file. For example;- In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies

7. Shell Programming and Scripting

Help... creating a script using Dialog

Hi , I just start to use Linux and i love it! I'm creating a project for school and is to create a script who ask the user to select and instal services like apache, dhcp, Samba, FTP etc... I create a menu using Dialog, just to make it better looking. I want to know how to retrieve the... (2 Replies)
Discussion started by: ajmaq
2 Replies

8. Shell Programming and Scripting

Script to display a dialog box every 5 seconds

I want to create a script that displays a dialog box every interval of time and exits that loop when a user presses ENTER Any idies? (4 Replies)
Discussion started by: amitlib
4 Replies

9. Shell Programming and Scripting

Menu in Menu script issue

Problem: I am trying to create a menu in a menu script and I am running into an issue with the calculator portion of the script. I am first presented with the ==Options Menu== which all 5 options working correctly. Now comes the fun part. I select option 1 which takes me to my ==Calculator... (1 Reply)
Discussion started by: iDdraig
1 Replies

10. Shell Programming and Scripting

Unix / Linux Dialog Utility - how to open 2+ more dialog windows ?

Hi, example of Unix / Linux dialog utility is below. I am going to use dialog as simple GUI for testing of a modem. So I need to combine some dialog boxes into one. I need to have input box, output box, info box, dialog box, radiobox as in any standard program with graphical user... (2 Replies)
Discussion started by: jack2
2 Replies
Login or Register to Ask a Question