title: How to reply to a USSD menu using Linux command line tools?
body: <p>I want to obtain information about the account balance of a SIM card I have installed in a mobile broadband modem in my computer. For my mobile network operator, this works using the USSD code <code>100#</code>.</p>
  
  <p>I found that <a href="http://cs.wammu.eu/docs/manual/gammu/" rel="nofollow"><code>gammu</code></a> can send that USSD code using <code>gammu getussd '100#'</code>. In response, gammu shows me this USSD menu:</p>
  
  <pre><code>Press Ctrl+C to break...  
  USSD received  
  Status               : Action needed  
  Service reply        : "Reply with your option:  
  1.Account Balance  
  2.Buy a Data Plan  
  3.Top Up Now  
  No response in specified timeout. Probably phone not connected.
  </code></pre>
  
  <p>How can select an option from that menu (like, <code>1</code>)?</p>