#!/bin/bash # 定义共同前缀变量 BASE_DIR="/mnt/disk001/dcl_data_process" rm -rf "${BASE_DIR}/log/camera*" rm -rf "${BASE_DIR}/log/pjibot_guide-camera*" pyinstaller --onefile --distpath "${BASE_DIR}/build/pjibot_guide-camera/" "${BASE_DIR}/src/python2/pjibot_guide/pjibot_guide-camera.py" #nohup python2 "${BASE_DIR}/src/python2/pjibot_guide/pjibot_guide-camera.py" "${BASE_DIR}/config/pjibot_guide-camera.yaml" > "${BASE_DIR}/log/pjibot_guide-camera.out" 2>&1 & nohup "${BASE_DIR}/build/pjibot_guide-camera/pjibot_guide-camera" "${BASE_DIR}/config/pjibot_guide-camera.yaml" > "${BASE_DIR}/log/pjibot_guide-camera.out" 2>&1 &