title: How to invoke "bt" command using JDebug for bt stack trace option
body: <p>I am using Jdebug system call using python and trying to automate the process of &quot;bt&quot; command as shown below.</p>
  <p>It consists of two steps.</p>
  <pre><code>jdebug core-tarball.0.tgz
  </code></pre>
  <p>Response received:</p>
  <pre><code>Using '/tmp' as temporary  location
  jdebug version: 5.0.0
  [File is compressed. This may take a moment...]
  ....
  [Current thread is 1 (LWP 100276)]
  
  (gdb) 
  </code></pre>
  <p>As seen above (gdb) prompt is appear and now i need to pass &quot;bt&quot; command and to read back the response from gdb prompt.</p>
  <p>Not sure how to send &quot;bt&quot; command via python or at shell script and read the response back.</p>
  <p>I am looking to automate these two steps:</p>
  <pre><code>Step #1: jdebug filename 
  Step #2  bt
  </code></pre>
  <p>[invoke 'bt' on gdb prompt and read back the response lines i.e. stack_trace information] via pyton or via os.system call.</p>