summaryrefslogtreecommitdiff
path: root/util/kill_session
blob: 1f57c81637a4224d0ed7715a4801f9e3c153c142 (plain)
1
2
3
4
5
#!/usr/bin/zsh -x

lsof /srv/postedit/sessions/$1/work/session.out | cut -d " " -f 2- | /srv/postedit/scripts/strips | cut -d " " -f 1 | grep -v PID  | xargs kill
lsof /srv/postedit/sessions/$1/work/session.out