title: How can I get a Python program to kill itself using a command run through the module sys?
body: <p>I want to see how a Python program could kill itself by issuing a command using the module <code>sys</code>. How could I get it to kill itself using a command of the following form?:</p>
  
  <pre><code>os.system(killCommand)
  </code></pre>
  
  <hr>
  
  <p>EDIT: emphasising for clarity</p>
  
  <p>So, just to be clear, I want to have a <em>string</em> that gets run in the shell that kills the Python program.</p>