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

Last change on this file since 1252 was 1252, checked in by daduve, 3 years ago
  • Property svn:executable set to *
File size: 256 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|awk '{print $2}'|xargs kill -TERM
9    ps axu|grep $USER|grep -v grep|awk '{print $2}'|xargs kill -KILL
10#fi
Note: See TracBrowser for help on using the repository browser.