title: Starting a netcat listener in new terminal window from python script
body: <p>Total python noob here but trying to learn</p>
  
  <p>I am trying to launch a new terminal window which is running a netcat listener on port 7777 from a python script.</p>
  
  <p>I have tried...</p>
  
  <pre><code>import os
  
  netcat = '--command \"nc -nvlp 7777\"'
  print ("Starting listener on port 7777")
  from subprocess import call
  call(['xfce4-terminal', netcat])
  </code></pre>
  
  <p>and</p>
  
  <pre><code>from subprocess import call
  call(['xfce4-terminal', '--command', '"nc -nvlp 7777"')]
  </code></pre>
  
  <p>but no dice. The second example will actually launch the terminal and look for a command, but doesn't execute the netcat "argument". </p>
  
  <p>This seems to be caused by the fact that using <code>--command</code> requires my netcat argument to be surrounded by quotes.</p>
  
  <p>Thanks in advance for all help</p>