agent-backend/script/killContracts.sh
2021-10-29 17:47:48 +08:00

10 lines
237 B
Bash

#!/bin/bash
if [ -a './CMI' ]; then
ps -ef | grep java | grep yjs | grep $(cat CMI) | awk '{print $2}' | xargs kill -9
fi
if [ $# -gt 0 ]; then
echo $1
ps -ef | grep java | grep yjs | grep $1 | awk '{print $2}' | xargs kill -9
fi