重新整理文件夹结构,并添加CNN训练代码。
This commit is contained in:
11
tools/monitor.sh
Executable file
11
tools/monitor.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
exe=$1
|
||||
while true; do
|
||||
state=`ps aux | grep "$1" | grep -v grep | grep -v $0`
|
||||
if [ ! "$state" ]; then
|
||||
exec $exe &
|
||||
echo "restart $exe"
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
Reference in New Issue
Block a user