Dialog forms

Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Dialog forms
# 1  
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:


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):


           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:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. UNIX for Dummies Questions & Answers


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

8. 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
Login or Register to Ask a Question