pjibot_patrol-pcd-nohup.sh 612 B

12345678910
  1. #!/bin/bash
  2. # 定义共同前缀变量
  3. BASE_DIR="/mnt/disk001/dcl_data_process"
  4. rm -rf "${BASE_DIR}/log/pcd*"
  5. rm -rf "${BASE_DIR}/log/pjibot_patrol-pcd*"
  6. pyinstaller --onefile --distpath "${BASE_DIR}/build/pjibot_patrol-pcd/" "${BASE_DIR}/src/python2/pjibot_patrol/pjibot_patrol-pcd.py"
  7. #nohup python2 "${BASE_DIR}/src/python2/pjibot_patrol/pjibot_patrol-pcd.py" "${BASE_DIR}/config/pjibot_patrol-pcd.yaml" > "${BASE_DIR}/log/pjibot_patrol-pcd.out" 2>&1 &
  8. nohup "${BASE_DIR}/build/pjibot_patrol-pcd/pjibot_patrol-pcd" "${BASE_DIR}/config/pjibot_patrol-pcd.yaml" > "${BASE_DIR}/log/pjibot_patrol-pcd.out" 2>&1 &