EDIT: First version didn't do the input loop, sorry - fixed now.
----------
Hi,
Would something like this do the trick for you ?
(You could keep using dialog here, I just used the builtin read for my own convenience when writing this).
Here's a sample session, showing it ony accepting input that conists of solely digits, and a minimum of five of them. It will keep prompting the user to enter an RFC until a valid one is provided.
Hope this helps. If this isn't quite right let me know and I'll see if I can tweak it.
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)
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)
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)
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.
dialog --inputbox "Input 1" 10 45
dialog --inputbox "Input 2" 10 45
dialog --inputbox "Input 3" 10 45
Using... (2 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)
Hey!
I want to get a directory listing and turn it into a bash dialog menu.
I need to append information from the files themselves (they'll be text files) onto the actual filenames as well.
I want to feed the appended filename list into the dialog menu as options.
I need to make a case... (5 Replies)
Discussion started by: shrout1
5 Replies
LEARN ABOUT LINUX
gai.conf
GAI.CONF(5) Linux Programmer's Manual GAI.CONF(5)NAME
gai.conf - getaddrinfo(3) configuration file
DESCRIPTION
A call to getaddrinfo(3) might return multiple answers. According to RFC 3484 these answers must be sorted so that the answer with the
highest success rate is first in the list. The RFC provides an algorithm for the sorting. The static rules are not always adequate,
though. For this reason, the RFC also requires that system administrators should have the possibility to dynamically change the sorting.
For the glibc implementation, this can be achieved with the /etc/gai.conf file.
Each line in the configuration file consists of a keyword and its parameters. White spaces in any place are ignored. Lines starting with
'#' are comments and are ignored.
The keywords currently recognized are:
label netmask precedence
The value is added to the label table used in the RFC 3484 sorting. If any label definition is present in the configuration file,
the default table is not used. All the label definitions of the default table which are to be maintained have to be duplicated.
Following the keyword, the line has to contain a network mask and a precedence value.
precedence netmask precedence
This keyword is similar to label, but instead the value is added to the precedence table as specified in RFC 3484. Once again, the
presence of a single precedence line in the configuration file causes the default table to not be used.
reload <yes|no>
This keyword controls whether a process checks whether the configuration file has been changed since the last time it was read. If
the value is "yes", the file is reread. This might cause problems in multithreaded applications and is generally a bad idea. The
default is "no".
scopev4 mask value
Add another rule to the RFC 3484 scope table for IPv4 address. By default, the scope IDs described in section 3.2 in RFC 3438 are
used. Changing these defaults should hardly ever be necessary.
FILES
/etc/gai.conf
VERSIONS
The gai.conf file is supported by glibc since version 2.5.
EXAMPLE
The default table according to RFC 3484 would be specified with the following configuration file:
label ::1/128 0
label ::/0 1
label 2002::/16 2
label ::/96 3
label ::ffff:0:0/96 4
precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 10
SEE ALSO getaddrinfo(3), RFC 3484
Linux 2016-03-15 GAI.CONF(5)