等到Curl命令结束

问题描述

我有这个Shell脚本,可以连续运行两个PHP脚本。

while [ true ]
do
    curl -s 'example.com/first.PHP' > /dev/null
    curl -s 'example.com/second.PHP' > /dev/null
    sleep 30;
done

但是有时候我认为它不能正常工作,例如,它同时运行两次first.PHPcurl命令是否在second.PHP进程结束之前运行first.PHP?我该如何解决? 我也没有在exitfirst.PHP

中使用second.PHP

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)