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
Regexp::Common::URI::tel(3)				User Contributed Perl Documentation			       Regexp::Common::URI::tel(3)

NAME
Regexp::Common::URI::tel -- Returns a pattern for telephone URIs. SYNOPSIS
use Regexp::Common qw /URI/; while (<>) { /$RE{URI}{tel}/ and print "Contains a telephone URI. "; } DESCRIPTION
$RE{URI}{tel} Returns a pattern that matches tel URIs, as defined by RFC 2806. Under "{-keep}", the following are returned: $1 The complete URI. $2 The scheme. $3 The phone number, including any possible add-ons like ISDN subaddress, a post dial part, area specifier, service provider, etc. $RE{URI}{tel}{nofuture} As above (including what's returned by "{-keep}"), with the exception that future extensions are not allowed. Without allowing those future extensions, it becomes much easier to check a URI if the correct syntax for post dial, service provider, phone context, etc has been used - otherwise the regex could always classify them as a future extension. REFERENCES
[RFC 1035] Mockapetris, P.: DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION. November 1987. [RFC 2396] Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource Identifiers (URI): Generic Syntax. August 1998. [RFC 2806] Vaha-Sipila, A.: URLs for Telephone Calls. April 2000. SEE ALSO
Regexp::Common::URI for other supported URIs. AUTHOR
Damian Conway (damian@conway.org) MAINTAINANCE
This package is maintained by Abigail (regexp-common@abigail.be). BUGS AND IRRITATIONS
Bound to be plenty. LICENSE and COPYRIGHT This software is Copyright (c) 2001 - 2009, Damian Conway and Abigail. This module is free software, and maybe used under any of the following licenses: 1) The Perl Artistic License. See the file COPYRIGHT.AL. 2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2. 3) The BSD Licence. See the file COPYRIGHT.BSD. 4) The MIT Licence. See the file COPYRIGHT.MIT. perl v5.16.2 2010-02-23 Regexp::Common::URI::tel(3)
All times are GMT -4. The time now is 08:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy