if [ $# -lt 1 ]
then
database=test
else
database=$1
fi
echo $database
/usr/local/mysql/bin/mysqldump -uroot -p $database > ./$database'.sql'
nohup java -jar xxx.jar &
pid=`ps -ef|grep xxx.jar|grep -v grep|awk '{print $2}'`
echo $pid
pid=`ps -ef|grep dwscmmp-0.0.1-SNAPSHOT.jar|grep -v grep|awk '{print $2}'`
echo $pid
for id in $pid
do
kill -9 $id
echo "kill -9 $id"
done