https://github.com/visdata/GeneticPrism
Tip revision: 29c7de3d1e970da6d4517634904ace6748a5079f authored by sunieee on 23 July 2025, 15:39:24 UTC
Merge branch 'main' of https://github.com/visdata/GeneticPrism
Merge branch 'main' of https://github.com/visdata/GeneticPrism
Tip revision: 29c7de3
monitor.sh
#!/bin/bash
# 第一个参数是端口号
PORT=$1
if inotifywait -e modify,create,delete -r -t 60 csv; then
pkill -f "runserver 0.0.0.0:$PORT"
nohup /root/anaconda3/bin/python manage.py runserver 0.0.0.0:$PORT 2>&1 &
fi
# * * * * * cd /home/xfl/pyCode/GFVisTest && ./monitor.sh 9002
# * * * * * cd /home/xfl/pyCode/GFVis && ./monitor.sh 9001