source: epoptes/trunk/fuentes/debian/killer-epoptes @ 1262

Last change on this file since 1262 was 1262, checked in by daduve, 4 years ago

Fix bug to not kill all process

  • Property svn:executable set to *
File size: 290 bytes
Line 
1#!/bin/bash
2if [ -n "$1" ]; then
3        USER="$1"
4fi
5
6#x=$(who | awk "/$USER/"'{print $1}')
7#if [ -z "$x" ]; then
8    ps axu|grep $USER|egrep -v 'grep|epoptes|socat'|awk '{print $2}'|xargs kill -TERM
9    ps axu|grep $USER|egrep -v 'grep|epoptes|socat'|awk '{print $2}'|xargs kill -KILL
10#fi
Note: See TracBrowser for help on using the repository browser.