LingxinMeng 7 tháng trước cách đây
mục cha
commit
4496edb08b

+ 6 - 0
src/python2/pjisuv/callback-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 callback-pjisuv.py > log/callback.out 2>&1 &

+ 6 - 0
src/python2/pjisuv/camera-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 camera-pjisuv.py > log/camera.out 2>&1 &

+ 6 - 0
src/python2/pjisuv/csv-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 csv-.py > log/csv.out 2>&1 &

+ 6 - 0
src/python2/pjisuv/merge-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 merge-pjisuv.py > log/merge.out 2>&1 &

+ 6 - 0
src/python2/pjisuv/pcd-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 pcd-pjisuv_002.py > log/pcd-pjisuv_002.out 2>&1 &

+ 6 - 0
src/python2/pjisuv/simulation-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 simulation-pjisuv.py > log/simulation.out 2>&1 &

+ 6 - 0
src/python2/pjisuv/xosc-nohup.sh

@@ -1,2 +1,8 @@
 #!/bin/bash
+if [ ! -d "./log" ]; then
+    mkdir "./log"
+    echo "Directory './log' created."
+else
+    echo "Directory './log' already exists."
+fi
 nohup python2 xosc-pjisuv.py > log/xosc.out 2>&1 &