bash,等待上一流程程序生成某文件后,再执行下一个流程的程序

#!/bin/bash

while [ 1 ]
do
if [ -f "/goke/DE/xxx.sign" ]
then
 sleep 10m
 echo "syn_pro have already generate xxx.sign."
 rm -rf /goke/DE/xxx.sign
 echo "RUN vivado COMMAND"
 cd /goke/DE/vivado_run
 ./RUN
 exit 0
else
 echo "xxx.sign not found."
 sleep 1h
fi
done

你可能感兴趣的:(linux)