LingxinMeng há 7 meses atrás
pai
commit
71495d03b0

+ 8 - 0
src/python2/pjibot/camera-nohup.sh

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

+ 2 - 0
src/python2/pjibot/camera-tail.sh

@@ -0,0 +1,2 @@
+#!/bin/bash
+tail -f log/camera.log

+ 2 - 2
src/python2/pjibot/pjibot_camera.py → src/python2/pjibot/camera.py

@@ -7,9 +7,9 @@ from resource import parse_pji_image
 
 import logging
 
-path1 = '/mnt/disk001/cicv-data-closedloop/python2-pjibot-double-camera-module-pji/'
+path1 = '/mnt/disk001/dcl_data_process/src/python2/pjibot/'
 
-logging.basicConfig(filename=path1 + 'log/pjibot_camera.log', level=logging.INFO,
+logging.basicConfig(filename=path1 + 'log/camera.log', level=logging.INFO,
                     format='%(asctime)s - %(levelname)s - %(message)s')
 
 key1 = 'pjibot/'