Sponsored Content
Top Forums Shell Programming and Scripting How to create multiple input box in same window using dialog Post 302698433 by kalpeer on Monday 10th of September 2012 05:25:24 AM
Old 09-10-2012
MySQL

i am using Centos 5 and installed the rpm dialog-1.0.20051107-1.2.2

---------- Post updated at 01:25 AM ---------- Previous update was at 12:51 AM ----------

After long search i got how to use form. Form helps us to use multiple text field.
Code:
dialog --backtitle "Dialog Form Example" --title "Dialog - Form" \
--form "\nDialog Sample Label and Values" 25 60 16 \
"Form Label 1:" 1 1 "Value 1" 1 25 25 30 \
"Form Label 2:" 2 1 "Value 2" 2 25 25 30 \
"Form Label 3:" 3 1 "Value 3" 3 25 25 30 \
"Form Label 4:" 4 1 "Value 4" 4 25 25 30 \
2>/tmp/form.$$

Moderator's Comments:
Mod Comment It's not a reason to not use code tags, when asked...

Last edited by vbe; 09-10-2012 at 08:56 AM..
This User Gave Thanks to kalpeer For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to unzip a file ftped from Window box?

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)
Discussion started by: terala_s
10 Replies

2. Shell Programming and Scripting

Displaying a dialog box using terminal commands

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)
Discussion started by: keshav.murthy@r
1 Replies

3. Shell Programming and Scripting

Pop up dialog box on remote computers

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)
Discussion started by: deaconf19
35 Replies

4. Shell Programming and Scripting

Create Multiple files by reading a input file and changing the contents

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)
Discussion started by: bhargavkr
2 Replies

5. Debian

Dialog box in debconf file.

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)
Discussion started by: Nila
0 Replies

6. 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

7. Red Hat

Authentication Failed Dialog Box on Redhat 4.7

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)
Discussion started by: redhatuser2012
27 Replies

8. UNIX for Dummies Questions & Answers

Dialog box

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)
Discussion started by: Adhi
3 Replies

9. Shell Programming and Scripting

Dialog box in korn shell scripting

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)
Discussion started by: NarayanaPrakash
1 Replies

10. Shell Programming and Scripting

Require input in bash dialog box

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
XCLIPBOARD(1)						      General Commands Manual						     XCLIPBOARD(1)

NAME
xclipboard - X clipboard client SYNOPSIS
xclipboard [ -toolkitoption ... ] [ -w ] [ -nw ] DESCRIPTION
The xclipboard program is used to collect and display text selections that are sent to the CLIPBOARD by other clients. It is typically used to save CLIPBOARD selections for later use. It stores each CLIPBOARD selection as a separate string, each of which can be selected. Each time CLIPBOARD is asserted by another application, xclipboard transfers the contents of that selection to a new buffer and displays it in the text window. Buffers are never automatically deleted, so you'll want to use the delete button to get rid of useless items. Since xclipboard uses a Text Widget to display the contents of the clipboard, text sent to the CLIPBOARD may be re-selected for use in other applications. xclipboard also responds to requests for the CLIPBOARD selection from other clients by sending the entire contents of the currently displayed buffer. An xclipboard window has the following buttons across the top: quit When this button is pressed, xclipboard exits. delete When this button is pressed, the current buffer is deleted and the next one displayed. new Creates a new buffer with no contents. Useful in constructing a new CLIPBOARD selection by hand. save Displays a File Save dialog box. Pressing the Accept button saves the currently displayed buffer to the file specified in the text field. next Displays the next buffer in the list. previous Displays the previous buffer. OPTIONS
The xclipboard program accepts all of the standard X Toolkit command line options as well as the following: -w This option indicates that lines of text that are too long to be displayed on one line in the clipboard should wrap around to the following lines. -nw This option indicates that long lines of text should not wrap around. This is the default behavior. WIDGETS
In order to specify resources, it is useful to know the hierarchy of the widgets which compose xclipboard. In the notation below, indenta- tion indicates hierarchical structure. The widget class name is given first, followed by the widget instance name. XClipboard xclipboard Form form Command Quit Command delete Command new Command Save Command next Command prev Label index Text text TransientShell fileDialogShell Dialog fileDialog Label label Command accept Command cancel Text value TransientShell failDialogShell Dialog failDialog Label label Command continue SENDING
/RETRIEVING CLIPBOARD CONTENTS Text is copied to the clipboard whenever a client asserts ownership of the CLIPBOARD selection. Text is copied from the clipboard whenever a client requests the contents of the CLIPBOARD selection. Examples of event bindings that a user may wish to include in a resource con- figuration file to use the clipboard are: *VT100.Translations: #override <Btn3Up>: select-end(CLIPBOARD) <Btn2Up>: insert-selection(PRIMARY,CLIPBOARD) <Btn2Down>: ignore () SEE ALSO
X(7), xcutsel(1), xterm(1), individual client documentation for how to make a selection and send it to the CLIPBOARD. ENVIRONMENT
DISPLAY to get the default host and display number. XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. FILES
/etc/X11/app-defaults/XClipboard specifies required resources AUTHOR
Ralph R. Swick, DEC/MIT Project Athena Chris D. Peterson, MIT X Consortium Keith Packard, MIT X Consortium X Version 11 xclipboard 1.1.2 XCLIPBOARD(1)
All times are GMT -4. The time now is 05:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy