Sponsored Content
Top Forums Shell Programming and Scripting Unix / Linux Dialog Utility - how to open 2+ more dialog windows ? Post 302301865 by jack2 on Saturday 28th of March 2009 07:23:43 PM
Old 03-28-2009
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 interface.

I really love Unix - Linux dialog utility
as it resembles me OCX objects in Visual Basic, I learned to use
in simple programs I wrote.

Please tell me if dialog utility is the only GUI for Unix / Linux
to run, test shell scripts .
Another graphical interface comes with Gnuplot, I have already tested.
Unfortunately Gnuplot comes as output only.

So it would be nice to combine Gnuplot output graphics with
dialog utility interaction in one terminal window.
So please just tell me what can be done with Uniux / Linux dialog utility
as the most sophisticated GUI interface .

I get more Unix Linux dialog utility examples from the net,
but what I am really looking for, is still your advice.

Unfortunately, my search for dialog utility at this forum
generated few results.

thanks.

Darius



#!/bin/bash
DIALOG=${DIALOG=dialog}

$DIALOG --title " My first dialog" --clear \
--yesno "Hello , this is my first dialog program" 10 30

case $? in
0)
echo "Yes chosen.";;
1)
echo "No chosen.";;
255)
echo "ESC pressed.";;
esac
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dialog output

is there a way to make dialog output chosen values to standard stream? or append to a file? thx (2 Replies)
Discussion started by: dhinge
2 Replies

2. UNIX for Dummies Questions & Answers

HoHow to compile Linux dialog - "curses.h" missing ?

Hi, I tried native compile Linux dialog for Linux embedded device and got "curses.h" error message. As Linux dialog is already compiled and working as Debian .deb package (installed it). What is a way to import curses.h from other package sources to work for dialog sources compilation in my... (2 Replies)
Discussion started by: darius2
2 Replies

3. Solaris

Running Dialog using Cron

Folks, I have a solaris 10 system. I am having trouble with cron to run a dialog command. When I simply execute below using a cron it does not work. I am new to the forum, please help me to understand it better. Thanks in advance. #!/bin/sh dialog --infobox "Please wait " 10 10 (2 Replies)
Discussion started by: wndgs
2 Replies

4. UNIX for Dummies Questions & Answers

Trying to native compile Linux Dialog

Hi, as my thread has been moved to Debian. I don't run Debian machine. My machine is Linux embedded router - mipsel. Sources come from Debian, but Dialog sources are GNU, so no Debian specific. Native compilation vs. crosscompilation, exactly to let you know, that I don't run Debian... (2 Replies)
Discussion started by: jack2
2 Replies

5. Linux

GUI for a Linux router - WWW or ncurses Dialog ?

Hi, Linux router is my only "full" Linux application. I native compiled and installed Linux Unix dialog utility. Dialog comes with a limited set of objects, called widgets. Some work fine, some need improvements. But what I really need is graphical interface to shell scripts run on my... (0 Replies)
Discussion started by: jack2
0 Replies

6. Shell Programming and Scripting

dialog utility

hi.. can anybody upload dialogue utility for linux 5.7... please.. its just under 1mb. (2 Replies)
Discussion started by: vivek d r
2 Replies

7. Shell Programming and Scripting

Lftp with dialog

Hi all. I want to know, if there is any chance to pass lftp listing to CLI dialog. I want to make an interactive CLI ftp manager, based on lftp. Version of dialog I use: root@dlink:~# dialog -v cdialog (ComeOn Dialog!) version 1.1-20100428 (0 Replies)
Discussion started by: n158
0 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. Homework & Coursework Questions

Dialog forms

1. The problem statement, all variables and given/known data: I need to create dialog interface for adress book i created a while ago but i don't know how to read info from forms 2. Relevant commands, code, scripts, algorithms: #!/bin/bash knyga="adresu-knyga.txt" dialog... (0 Replies)
Discussion started by: sasisken
0 Replies

10. Shell Programming and Scripting

Dialog utility

Hi, I am new to shell scripting, started learning script before one month. I can't understand the below script. dialog --title "Inputbox - To take input from you" --backtitle "Linux Shell\ Script Tutorial" --inputbox "Enter your name please" 8 60 2>/tmp/input.$$ In this script they are... (1 Reply)
Discussion started by: raj1983
1 Replies
Dialog(3pm)						User Contributed Perl Documentation					       Dialog(3pm)

NAME
Tk::Dialog - Create modal dialog and wait for a response. SYNOPSIS
$dialog = $parent->Dialog(-option => value, ... ); DESCRIPTION
This procedure is part of the Tk script library - its arguments describe a dialog box. After creating a dialog box, 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 text string of the selected Button. While waiting for the user to respond, Dialog sets a local grab. This prevents the user from interacting with the application in any way except to invoke the dialog box. See the Show() method. OPTIONS
The following option/value pairs are supported: -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. -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_button Text label string of the Button that displays the default ring. -buttons A reference to a list of Button label strings. Each string specifies text to display in a Button, in order from left to right. METHODS
$answer = $dialog->Show(?-global?); This method displays the Dialog, waits for the user's response, and stores the text string of the selected Button in $answer. If -global is specified a global (rather than local) grab is performed. The actual Dialog is shown using the Popup method. Any other options supplied to Show are passed to Popup, and can be used to position the Dialog on the screen. Please read Tk::Popup for details. ADVERTISED WIDGETS
Because Tk::Dialog is a subclass of Tk::DialogBox it inherits all the advertised subwidgets of its superclass: e.g. "B_button-text", where 'button-text' is a Button's -text value. Additionally, Tk::Dialog advertises: message The dialog's Label widget containing the message text. bitmap The dialog's Label widget containing the bitmap image. EXAMPLE
$dialog = $mw->Dialog(-text => 'Save File?', -bitmap => 'question', -title => 'Save File Dialog', -default_button => 'Yes', -buttons => [qw/Yes No Cancel/); KEYWORDS
bitmap, dialog, modal, messageBox perl v5.14.2 2010-05-29 Dialog(3pm)
All times are GMT -4. The time now is 05:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy