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

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

fix error in grep to find epoptes user process

  • Property svn:executable set to *
File size: 306 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| grep -v grep | egrep 'epoptes|socat'|awk '{print $2}'|xargs kill -TERM
9    ps axu|grep $USER| grep -v grep | egrep 'epoptes|socat'|awk '{print $2}'|xargs kill -KILL
10#fi
Note: See TracBrowser for help on using the repository browser.