title: Set the variable in command output
body: <p>I would like to know how can i use my variables in output of another command. For example if i try to generate some keys with "openssl" i'll get the question about the country, state, organizations etc. </p>
  
  <p>I would like to use my variables in the script that i have to fill this information. I'll have variable "Country"; variable "State" etc. and to be parsed/set in to this questions from the openssl command when is executed.</p>
  
  <p>I'm trying this in bash but also would like to know how will be the same think done in python. </p>
  
  <p>Kind regards</p>