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.

16 lines
399B

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