How to create multiple input box in same window using dialog
Hi All,
I was trying to generate GUI using shell script. After long search I found the utility called “dialog”. Using this utility I am able to generate window to collect the input.
Using the above commands I am able to collect the three inputs in GUI. But here it opens three different Windows to collect the three inputs.
I want to have single window to collect all these three inputs.
Could you please help me in this.
Is there any other utility apart from dialog to achieve this.
Thanks,
Kalai
Moderator's Comments:
Please view this code tag video for how to use code tags when posting code and data.
Hi,
How to unzip and file which FTP'ed from Windows box?
File name is ABC.ZIP
I tried unzip and gunzip -S .ZIP ABC.ZIP
i am getting following error
gunzip: ABC.ZIP: unknown suffix -- ignored
Any info is appreciated!
~t (10 Replies)
Hello,
I used the command
osascript -e 'tell app "Finder" to display dialog "Hey!"'
to display a dialog box..it works fine, it displays a dialog box with 'OK' and 'CANCEL' buttons..i want to get the button returned value how can i do that using terminal command?
is there any command to get... (1 Reply)
I need to send out messages to over 100 clients in my sector. I want it to pop up a dialog box letting them know to save work and log out. I have the reboot script created just need the warning please. Thanks (35 Replies)
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Hi all,
I am working with debconf file for packaging the projects. I have used the
". /usr/share/debconf/confmodule" file to do the packaging in debian standard. It worked fine. When ever I am installing the package in apt-get the dialogs are come as I mentioned in the templates file.... (0 Replies)
For some reason i cannot login using root or other accounts on my Linux system.
When logging in at the main console it says "Authentication failed" in a dialog box with an OK button.
The Linux system is Redhat 4.7.
I've already checked /etc/pam.d/login, /etc/security/access.conf and ... (27 Replies)
I know, I can run dialog command in my machine. But what I want to do is I wanna show the dialog box to some other Remote host.
I connected to the remote system and used dialog command its shows the box in my terminal only. How can I display to that remote machine?? Any suggestions??? (3 Replies)
Does dialog box works on all kind of shells? I am using korn shell in Linux .
For me dialog is not working :) is there any particular syntax or do we need to have particular OS version or shell env?
#!/bin/ksh
dialog --title "create file" \
--backtitle "shell script practice" \... (1 Reply)
Hello.
Any help would be greatly appreciated.
Right now I have the following input box that works fine and well, however I would like to wrap this is a loop that requires input. Right now the script will happily continue on if the user just hits enter. I'd like to require a minimum of a 5... (5 Replies)
Discussion started by: woodson2
5 Replies
LEARN ABOUT REDHAT
tk_dialog
tk_dialog(n) Tk Built-In Commands tk_dialog(n)
__________________________________________________________________________________________________________________________________________________NAME
tk_dialog - Create modal dialog and wait for response
SYNOPSIS
tk_dialog window title text bitmap default string string ...
_________________________________________________________________DESCRIPTION
This procedure is part of the Tk script library. Its arguments describe a dialog box:
window Name of top-level window to use for dialog. Any existing window by this name is destroyed.
title Text to appear in the window manager's title bar for the dialog.
text Message to appear in the top portion of the dialog box.
bitmap If non-empty, specifies a bitmap to display in the top portion of the dialog, to the left of the text. If this is an empty string
then no bitmap is displayed in the dialog.
default
If this is an integer greater than or equal to zero, then it gives the index of the button that is to be the default button for the
dialog (0 for the leftmost button, and so on). If less than zero or an empty string then there won't be any default button.
string There will be one button for each of these arguments. Each string specifies text to display in a button, in order from left to
right.
After creating a dialog box, tk_dialog waits for the user to select one of the buttons either by clicking on the button with the mouse or
by typing return to invoke the default button (if any). Then it returns the index of the selected button: 0 for the leftmost button, 1
for the button next to it, and so on. If the dialog's window is destroyed before the user selects one of the buttons, then -1 is returned.
While waiting for the user to respond, tk_dialog sets a local grab. This prevents the user from interacting with the application in any
way except to invoke the dialog box.
KEYWORDS
bitmap, dialog, modal
Tk 4.1 tk_dialog(n)