加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows Bat检查php脚本是否运行

发布时间:2020-12-14 05:39:56 所属栏目:Windows 来源:网络整理
导读:我正在使用蝙蝠在win2003调度程序上运行php.有没有办法检查进程,看看文件是否仍在运行. 解决方法 这样的批处理文件如何:(伪代码,因为它已经有一段时间了) :makerandommake som random var,microtime,whatever,we call it %x%check if file exist,if it does,
我正在使用蝙蝠在win2003调度程序上运行php.有没有办法检查进程,看看文件是否仍在运行.

解决方法

这样的批处理文件如何:(伪代码,因为它已经有一段时间了)

:makerandom
make som random var,microtime,whatever,we call it %x%
check if file exist,if it does,goto makerandom
call the script with %x% as argument
:check
if file exist %x% goto check
:done

在PHP脚本中:

create the file specified by the argument
... script here ...
delete the file

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读