w1100n
This site is best viewed in Google Chrome
2/19/2020 10:27

#! /bin/bash
    function check(){
      count=`ps -ef |grep $1 |grep -v "grep" |wc -l`
      #echo $count
      if [ 0 == $count ];then
        nohup python /runscript/working/$1 &
      fi
    }

————————————————
版权声明:本文为CSDN博主「栎枫」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/superbfly/article/details/52513765

<< Previous Posts Newer Posts >>
普萝谷 辽ICP备14012896