title: Terminate program with Ctrl-C without terminating parent script
body: <p>I have a bash script that starts an external program (<code>evtest</code>) twice.</p>
  
  <pre><code>#!/bin/bash
  
  echo "Test buttons on keyboard 1"
  evtest /dev/input/event1
  
  echo "Test buttons on keyboard 2"
  evtest /dev/input/event2
  </code></pre>
  
  <p>As far as I know, <code>evtest</code> can be terminated only via Ctrl-C. The problem is that this terminates the parent script, too. That way, the second call to evtest will never happen.</p>
  
  <p>How can I close the first <code>evtest</code> without closing the script, so that the second <code>evtest</code> will actually run?</p>
  
  <p>Thanks!</p>
  
  <p>P.S.: for the one that want to ask "why not running <code>evtest</code> manually instead of using a script?", the answer is that this script contains further semi-automated hardware debug test, so it is more convenient to launch the script and do everything without the need to run further commands.</p>