add scripts
Browse files- checkYolov5g.sh +16 -0
- telegramCrise.sh +1 -0
checkYolov5g.sh
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
export path=/home/atualli/.local/lib/python3.8/site-packages:$PATH
|
3 |
+
cd ~/Projetos/huggingface/yolov7
|
4 |
+
SERVER=192.168.0.153
|
5 |
+
PORT=8080
|
6 |
+
|
7 |
+
if lsof -Pi :$PORT -sTCP:LISTEN -t >/dev/null ; then
|
8 |
+
echo "running"
|
9 |
+
else
|
10 |
+
./telegramCrise.sh "reiniciando_yolox_V5G_linux_192.168.0.153:8080"
|
11 |
+
pkill -f app1.py
|
12 |
+
python app1.py &
|
13 |
+
echo "not running"
|
14 |
+
fi
|
15 |
+
|
16 |
+
|
telegramCrise.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
curl -X POST "https://api.telegram.org/bot766543741:AAE0oO_ni_QYkfS8tZxC-VZt0RJztFiZNHc/sendMessage?chat_id=-927074982&text=$1"
|