title: How test user entry from a ruby gtk?
body: <p>How can I test and execute a command after a gtk dialog? I have the following.</p>
  
  <pre><code>dialog.default_response = Gtk::Dialog::RESPONSE_OK
  label1 = Gtk::Label.new("Test1")
  label2 = Gtk::Label.new("Test2")
  label3 = Gtk::Label.new("Test3")
  label4 = Gtk::Label.new("Test4")
  
  resultest1 = Gtk::Entry.new
  resultest2 = Gtk::Entry.new
  resultest3 = Gtk::Entry.new
  resultest4 = Gtk::Entry.new
  
  
  table = Gtk::Table.new(4, 2, false)
  table.attach_defaults(label1, 0, 1, 0, 1)
  table.attach_defaults(label2, 0, 1, 1, 2)
  table.attach_defaults(label3, 0, 1, 2, 3)
  table.attach_defaults(label4, 0, 1, 3, 4) 
  table.attach_defaults(resultest1,   1, 2, 0, 1)
  table.attach_defaults(resultest2,   1, 2, 1, 2)
  table.attach_defaults(resultest3,   1, 2, 2, 3)
  table.attach_defaults(resultest4,   1, 2, 3, 4)
  table.row_spacings = 5
  table.column_spacings = 5
  table.border_width = 10
  
  dialog.vbox.add(table)
  dialog.show_all
  
  # Run the dialog and output the data if user okays it
  dialog.run do |response|
    if response == Gtk::Dialog::RESPONSE_OK
      print "Do something with response 1 of the user: %s\n" % [resultest1.text]
      print "Do something with response 2 of the user: %s\n" % [resultest2.text]
      print "Do something with response 3 of the user: %s\n" % [resultest3.text]
      print "Do something with response 4 of the user: %s\n" % [resultest4.text]
    end
  end
  dialog.destroy
  }
  </code></pre>
  
  <p>And I want to do some commands with the user response. For example one command on the same line with response 1 and 2 like unix sample commands. If question 1 is what wifi card you use and question 2 is what channel to listen to, I want to be able to do the following after the Gtk::dialog:
  airodump-ng -c ${canal} ${wificard}</p>
  
  <p>Any help is appreciated.</p>