Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wronnyhuang committed Oct 3, 2018
1 parent 59251b0 commit 87177d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rek
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
# REgexKill kill processes based on regex pattern
my_pattern=$1
for KILLPID in `ps aux | grep $my_pattern | awk ' { print $2;}'`; do
echo KILLING PID $KILLPID
ps aux | grep $KILLPID.*log_root
ps aux | grep $KILLPID.*$my_pattern
kill -9 $KILLPID;
echo ' '
done

0 comments on commit 87177d8

Please sign in to comment.