You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
416B

  1. #!/bin/bash
  2. #后台运行Chat_on_webchat执行脚本
  3. cd `dirname $0`/..
  4. export BASE_DIR=`pwd`
  5. echo $BASE_DIR
  6. # check the nohup.out log output file
  7. if [ ! -f "${BASE_DIR}/nohup.out" ]; then
  8. touch "${BASE_DIR}/nohup.out"
  9. echo "create file ${BASE_DIR}/nohup.out"
  10. fi
  11. nohup python3 "${BASE_DIR}/app.py" & tail -f "${BASE_DIR}/nohup.out"
  12. echo "Chat_on_webchat is starting,you can check the ${BASE_DIR}/nohup.out"