pkill -f process.py

apt update 
apt install -y python3 python3-pip zip unzip tmux
pip3 install redis tqdm requests aiohttp --break-system-packages
rm -rf ~/deploy* ~/install* ~/*deploy* __MACOSX 
wget https://ffmpeg.videostation.tech/assets/newdeploy.zip
unzip -o newdeploy.zip
cd deploy

#tmux new-session -d -s mysession \; new-window -n deploy "python3 process.py && sleep 9999999"
#python3 process.py
# Kill the session if it exists
tmux has-session -t mysession 2>/dev/null && tmux kill-session -t mysession

# Create a new detached session
tmux new-session -d -s mysession \; new-window -n deploy "python3 process.py && sleep 9999999"