~qioeujqioejqioe-deactivatedaccount/exaile/missing-signals

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

import os, re

h = os.popen('ps x | grep exaile')
lines = h.readlines()

for line in lines:
    info = re.split(r'\s+', 
        line.strip())
    if len(info) == 7:
        if info[4] == 'python' and info[6] \
            == 'exaile.py':
            os.system('kill -9 %s' % info[0])