Ignore:
Timestamp:
Apr 22, 2016, 10:18:09 AM (4 years ago)
Author:
daduve
Message:

Fix bug to not kill all process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • epoptes/trunk/fuentes/debian/killer-epoptes

    r1252 r1262  
    66#x=$(who | awk "/$USER/"'{print $1}')
    77#if [ -z "$x" ]; then
    8     ps axu|grep $USER|grep -v grep|awk '{print $2}'|xargs kill -TERM
    9     ps axu|grep $USER|grep -v grep|awk '{print $2}'|xargs kill -KILL
     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
    1010#fi
Note: See TracChangeset for help on using the changeset viewer.