#!/bin/bash
ID=`ps -ef | grep "abc" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
echo $ID
echo "---------------"
for id in $ID
do
kill -9 $id
echo "killed $id"
done
echo "---------------"
nohup  java -jar /home/abc.jar >/home/log.out &
nohup cat /home/log.out |cronolog /home/logs/log_%Y%m%d.log 2>&1 &

 

相关文章:

  • 2021-06-27
  • 2021-12-03
  • 2022-12-23
  • 2021-12-01
  • 2021-10-30
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案