-
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 -
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
- The attempts at a solution (include all code and scripts):
#!/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
- 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: