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