Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (7 sloc) 148 Bytes
#!/bin/bash
# run as cfbot-stop.sh BOT_ENV_NAME
for i in $(ps ajx | awk "/[b]ot ${1}/ {print \$2;}")
do
echo "killing pid $i"
kill -9 $i
done