#!/bin/bash # Set proxy settings export http_proxy=http://proxy.zhuxh.cloud:5868 export https_proxy=http://proxy.zhuxh.cloud:5868 export all_proxy=http://proxy.zhuxh.cloud:5868 # Terminate existing processes screen -S client -X quit pkill -f "python start_client.py" pkill -f "python getstat.py" # Remove existing directory and clone repository rm -rf mtcmon-rev git clone https://git.nju.edu.cn/zhuxh/mtcmon-rev.git cd mtcmon-rev # Start the Python script in the background nohup python start_client.py > start_client.log 2>&1 & echo "start_client.py started"