minor update to bash script
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#change to ccurrent directory
|
#change to current directory
|
||||||
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
@@ -27,6 +27,7 @@ echo $num > log/number
|
|||||||
#watchdog
|
#watchdog
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
||||||
#increment log file number
|
#increment log file number
|
||||||
num=$(( num + 1 ))
|
num=$(( num + 1 ))
|
||||||
echo $num > log/number
|
echo $num > log/number
|
||||||
@@ -35,6 +36,7 @@ do
|
|||||||
npm start 2> log/$num.err | tee log/$num.out
|
npm start 2> log/$num.err | tee log/$num.out
|
||||||
|
|
||||||
#give chance to close program
|
#give chance to close program
|
||||||
sleep 5
|
|
||||||
printf "\n\n\n${C1}press ${C2}Control+C${C1} to close${NC}\n\n\n"
|
printf "\n\n\n${C1}press ${C2}Control+C${C1} to close${NC}\n\n\n"
|
||||||
|
sleep 5
|
||||||
|
|
||||||
done
|
done
|
||||||
Reference in New Issue
Block a user