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?
Hi, being very new to Korn Shell Scripting I am hoping that someone here can help me. I want to compare file name in scp/inbox directory to file name stored inside a file in pnt/compare directory.
Hi, being very new to Korn Shell Scripting I am hoping that someone here can help me. I want to... (1 Reply)
Hi
I'm new to scripting and I don't know where to start. I need to create a script that needs to look for specific files in a specific folder then I need to return the filename, the recordcount, bytecount and checksums. Then I need to write these results into a new file.
I would appreciate... (2 Replies)
Hello All,
Can someone help me to set a user's password from the script using korn shell. The password change is a one time password after user account creation.
I tried providing the input file as the value for password field but password change requires tty so my password from an input file... (3 Replies)
I have made the following simple script:
a=0
let a=$a+1
if "]
then mailx -s "Up" abc@yahoo.com
fi
When I run the above script, I get the following error:
# ./new.ksh
./new.ksh: ]: not found.
Please tell me how to use if here? (6 Replies)
I am attempting to learn shell programming using o'rielly book "Learning the Korn Shell".
I am finding it pretty difficult to do since the only access I have to unix boxes are running version 99 of ksh.
The book utilizes ksh93 and there appear to be many differences. I can't even follow along... (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)
I have a scenario to implement in Korn shell script. Here it is..
I need to compare two values to see whether they are same or not. The issue is that the values coming in for comparison can be a string or an integer which can be determined during run time only.
Which korn shell comparison... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
There is a menu driven program and there are some fields to be achived
3. Display contents of all .lst files... (3 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)
Discussion started by: Adhi
3 Replies
LEARN ABOUT SUSE
iwidgets_dialog
iwidgets::dialog(1) [incr Widgets] iwidgets::dialog(1)__________________________________________________________________________________________________________________________________________________NAME
iwidgets::dialog - Create and manipulate a dialog widget
SYNOPSIS
iwidgets::dialog pathName ?options?
INHERITANCE
itk::Toplevel <- iwidgets::Shell <- iwidgets::Dialogshell <- iwidgets::Dialog
STANDARD OPTIONS
background cursor foreground
See the "options" manual entry for details on the standard options.
INHERITED OPTIONS
buttonBoxPadX buttonBoxPadY buttonBoxPos padX
padY separator thickness
See the "dialogshell" manual entry for details on the above inherited options.
height master modality width
See the "shell" manual entry for details on the above inherited options.
title
See the "Toplevel" manual entry for details on the above inherited options.
__________________________________________________________________________________________________________________________________________________DESCRIPTION
The iwidgets::dialog command creates a dialog box providing standard buttons and a child site for use in derived classes. The buttons
include ok, apply, cancel, and help. Methods and Options exist to configure the buttons and their containing box.
METHODS
The iwidgets::dialog command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on
the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the com-
mand. The following commands are possible for dialog widgets:
INHERITED METHODS
add buttonconfigure defaulthide
index insert invoke show
See the "buttonbox" manual entry for details on the above inherited methods.
childsite
See the "dialogshell" manual entry for details on the above inherited methods.
activate center deactivate
See the "shell" manual entry for details on the above inherited methods.
WIDGET-SPECIFIC METHODS
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwid-
gets::dialog command.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available
options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then
the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value
returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget
option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted
by the iwidgets::dialog command.
EXAMPLE
package require Iwidgets 4.0
iwidgets::dialog .d -modality global
.d buttonconfigure OK -command {puts OK; .d deactivate 1}
.d buttonconfigure Apply -command {puts Apply}
.d buttonconfigure Cancel -command {puts Cancel; .d deactivate 0}
.d buttonconfigure Help -command {puts Help}
listbox [.d childsite].lb -relief sunken
pack [.d childsite].lb -expand yes -fill both
if {[.d activate]} {
puts "Exit via OK button"
} else {
puts "Exit via Cancel button"
}
AUTHOR
Mark L. Ulferts Bret A. Schuhmacher
KEYWORDS
dialog, dialogshell, shell, widget
Tkiwidgets::dialog(1)