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