status.sh 210 B

12345678
  1. #!/bin/bash
  2. pid=`ps -ef |grep "/data/wework/app/app.py" |grep -v grep |awk '{print $2}'`
  3. if [ ! "$pid" ];then
  4. echo "openai-on-wechat is not running"
  5. else
  6. echo "openai-on-wechat is running on pid: $pid"
  7. fi