mirror of
https://github.com/FAUSheppy/config
synced 2025-12-10 00:28:32 +01:00
fix: cleanup hc daemon scripts
This commit is contained in:
@@ -43,6 +43,13 @@ if pid==-1:
|
||||
process = psutil.Process(pid)
|
||||
for p in process.children(): #recursive=false
|
||||
if p.name() in ['zsh','bash']:
|
||||
|
||||
# check for ssh #
|
||||
for sp in p.children(recursive=True):
|
||||
print(sp.name())
|
||||
if sp.name() == 'ssh':
|
||||
print(sp)
|
||||
|
||||
subprocess.Popen(shlex.split('urxvt -cd ' + p.cwd()))
|
||||
break
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user