title: Set a python process name
body: <p>My python script needs to be killed every hour and after I need to restarted it. I need this to do because it's possible sometimes (I create screenshots) a browser window is hanging because of a user login popup or something.. Anyway. I created 2 files 'reload.py' and 'screenshot.py'. I run reload.py by cronjob.</p>
  
  <p>I thought something like this would work</p>
  
  <pre><code>    # kill process if still running
  try :   
          os.system("killall -9 screenshotTaker");
  except :
          print 'nothing to kill'
  
  # reload or start process
  os.execl("/path/to/script/screenshots.py", "screenshotTaker")
  </code></pre>
  
  <p>The problem is, and what I read aswel the second argument of execl (the given process name) doesn't work? How can I set a process name for it to make the kill do it's work?</p>
  
  <p>Thanks in advance!</p>