07-16-2008
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 the button returned value??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm a Unix newbie.
In a shell-script, is there any way to accept keyboard input (via STDIN) without having it display on the screen? I know keying in a login password sort of does this by replacing what you key with astericks (*) but I believe that's a "C" routine. I'd like to be able to... (2 Replies)
Discussion started by: liteyear18
2 Replies
2. UNIX for Dummies Questions & Answers
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies
3. Shell Programming and Scripting
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. Debian
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
5. Shell Programming and Scripting
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
6. Red Hat
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
7. Shell Programming and Scripting
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)
Discussion started by: kalpeer
2 Replies
8. UNIX for Dummies Questions & Answers
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
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
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 DEBIAN
gtkada-dialog
GTKADA2-DIALOG(1) GtkAda 2 programming manual GTKADA2-DIALOG(1)
NAME
gtkada2-dialog - Display a GTK+ dialog box from the command line.
SYNOPSIS
gtkada2-dialog [dialog_type [justification]]
DESCRIPTION
gtkada2-dialog displays the contents of its standard input in a GTK+ dialog box. This is the version supplied with GtkAda version 2, and
it uses GTK+ 2 widgets.
OPTIONS
dialog_type
The type of dialog box desired. Possible values are:
warning A message box with an exclamation point.
error A message box with a red stop sign.
information A message box with an "information" sign: white "i" on blue background.
confirmation A message box with a question mark.
custom A message box with no pixmap and a user-defined caption.
The default type is information.
justification
The type of justification desired for the text of the message. Possible values are justify_left, justify_right, justify_center and
justify_fill. The default is justify_center.
COPYRIGHT FOR THIS MAN PAGE
This man page has been written by Ludovic Brenta for the Debian GNU/Linux distribution, from information given by the GtkAda authors
Emmanuel Briot, Joel Brobecker and Arnaud Charlet.
Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the
above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documenta-
tion.
Debian GNU/Linux 25 Nov 2003 GTKADA2-DIALOG(1)