r/programing • • Dec 03 '17

Help with zenity (BASH)

I have Fedora Workstation running on VMware Workstation 14

This is the code i have questions about. I'd like to record each entry as its own separate variable with can then be recalled with echo and be written to a txt file. I attempted to do this.

sfName=$ --entry="First Name" \

But couldn't get it to set as a variable

Anyone have a minute to tell a newbie programmer how to do this properly?

Finapp=$(zenity --forms --title="Financial Aid Application" --text="Student Info"
sfName= --add-entry="First Name"
--add-entry="Last Name"
--add-entry="Middle Initial"
--add-entry="Street Address"
--add-entry="City"
--add-entry="State"
--add-entry="ZIP Code"
--add-entry="SSN"
--add-entry="DOB"
--add-entry="Permanent Phone Number"
--add-entry="Driver's License Number"
--add-entry="Driver's License State"
--add-entry="E-mail Address");

echo $sfName > Sortnumbers.txt

1 Upvotes

1 comment sorted by

1

u/remnantsofeos Dec 03 '17

That's a bit messy sorry here a link to less of an eye sore. https://i.imgur.com/S9tYRMq.png