Sponsored Content
Full Discussion: Dialog forms
Homework and Emergencies Homework & Coursework Questions Dialog forms Post 302882117 by sasisken on Saturday 4th of January 2014 11:24:33 AM
Old 01-04-2014
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 --ok-label "Submit" \
--backtitle "Linux User Managment" \
--title "Useradd" \
--form "Create a new user" \
15 50 0 \
"Pavarde:" 1 1 "$pavarde" 1 10 10 0 \
"Vardas:" 2 1 "$vardas" 2 10 15 0 \
"Telefono numeris:" 3 1 "$tel" 3 10 8 0 \
"El.pastas:" 4 1 "$pastas" 4 10 40 0 \

echo "$vardas ; $tel ; $el" >>$knyga

this is what i have at this time but it only gives commas in text file dunno what to do not a lot of info on this topic

3. The attempts at a solution (include all code and scripts):

Code:
#!/bin/bash
knyga="adresu-knyga.txt"

           dialog --ok-label "Submit" \
          --backtitle "Linux User Managment" \
          --title "Useradd" \
          --form "Create a new user" \
                                        15 50 0 \
        "Pavarde:" 1 1  "$pavarde"      1 10 10 0 \
        "Vardas:"    2 1        "$vardas"       2 10 15 0 \
        "Telefono numeris:"    3 1      "$tel"          3 10 8 0 \
        "El.pastas:"     4 1    "$pastas"       4 10 40 0 \

                echo "$vardas ; $tel ; $el" >>$knyga




4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Lithuania , Vilnius , Vilniaus Collegue 1st course M.Liogys HTML Code:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

int.lst forms

I am working on a re-engineering project. Original Code is written in C. In the C code some "forms" are being called. Each form is in a separate file and files are tagged "int" or "int.lst" like f00.int, f00.int.lst Can some body through some light on what are these files and what is the... (2 Replies)
Discussion started by: cxredd4
2 Replies

2. UNIX for Dummies Questions & Answers

Forms

Hi, I currently have a form containing three boxes of info to be filled in. I would like it so if the user presses F10 a list of company names is displayed, using the company names from a table I have. I would like this list to be in a popup window if it is possible. I am using Informix, sco-unix.... (2 Replies)
Discussion started by: Dan Rooney
2 Replies

3. UNIX for Dummies Questions & Answers

lp printing - forms design

This may seem a basic question however I'm using lp printing for the first time, is it possible to call a pre-defined form or template (the froms could for example contain Company details & logos) dependant on the type of file being sent to the print queue (e.g by using triggers) ? (0 Replies)
Discussion started by: gefa
0 Replies

4. Shell Programming and Scripting

Perl CGI forms

Hello All, I am calling a script 'abc.pl' in my action section while creating a form. This will automatically pass parameters that are collected in the form. But I want to pass other parameters which are actually just variables in the script I am calling 'abc.pl' from. How do I make sure these... (4 Replies)
Discussion started by: garric
4 Replies

5. UNIX for Dummies Questions & Answers

Unix Forms

Hi Im new so be gentle Just starting out in programing and i want to try unix to see what all the fuss is about. But right now im like a kid in a sweet shop, spoilt for choice. Theres red hat, fedora, linux, ubuntu and thats just for starters I've been told ubuntu is a nice... (3 Replies)
Discussion started by: NightWatchman
3 Replies

6. Shell Programming and Scripting

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... (2 Replies)
Discussion started by: jack2
2 Replies

7. Shell Programming and Scripting

Grabbing web forms with Perl

Hello Everyone, I've googled everywhere for this with no luck and my brain hurts. I'm trying to write a program to take my webpages and search for forms. I've used LWP::Simple to store a website in $content I need to cut the form out of $content. I don't know how to do this seeing as how... (2 Replies)
Discussion started by: wibbs
2 Replies

8. 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
tk_chooseDirectory(n)					       Tk Built-In Commands					     tk_chooseDirectory(n)

__________________________________________________________________________________________________________________________________________________

NAME
tk_chooseDirectory - pops up a dialog box for the user to select a directory. SYNOPSIS
tk_chooseDirectory ?option value ...? _________________________________________________________________ DESCRIPTION
The procedure tk_chooseDirectory pops up a dialog box for the user to select a directory. The following option-value pairs are possible as command line arguments: -initialdir dirname Specifies that the directories in directory should be displayed when the dialog pops up. If this parameter is not specified, then the directories in the current working directory are displayed. If the parameter specifies a relative path, the return value will convert the relative path to an absolute path. -mustexist boolean Specifies whether the user may specify non-existent directories. If this parameter is true, then the user may only select directo- ries that already exist. The default value is false. -parent window Makes window the logical parent of the dialog. The dialog is displayed on top of its parent window. On Mac OS X, this turns the file dialog into a sheet attached to the parent window. -title titleString Specifies a string to display as the title of the dialog box. If this option is not specified, then a default title will be dis- played. EXAMPLE
set dir [tk_chooseDirectory -initialdir ~ -title "Choose a directory"] if {$dir eq ""} { label .l -text "No directory selected" } else { label .l -text "Selected $dir" } SEE ALSO
tk_getOpenFile(n), tk_getSaveFile(n) KEYWORDS
directory, selection, dialog, platform-specific Tk 8.3 tk_chooseDirectory(n)
All times are GMT -4. The time now is 10:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy