【发布时间】:2021-04-18 00:12:57
【问题描述】:
我有一个 shell 脚本,可以从 ps aux grep python3
shell 脚本 (pythoncheck.sh)
if ps aux | grep -v "grep" | grep "python3" ; then echo "found" ; fi
如何在 html 或 php 中调用此脚本,当单击按钮时,如果结果“找到”状态变为绿色,如果为 null,则状态变为红色
这可以用 PHP 实现吗?
【问题讨论】:
-
@feverdream 完全错误