dos php 计划任务
@echo off
:loop
echo 这是一个死循环
echo This is an infinite loop.
php think gpt
php think ai
timeout /t 2
goto loop
宝塔面板 php 计划任务
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
step=5
for (( i = 0; i < 60; i=(i+step) )); do
php /www/wwwroot/api006.yuzhouxiong.net/think gpt
php /www/wwwroot/api006.yuzhouxiong.net/think ai
echo “----------------------------------------------------------------------------”
endDate=date +"%Y-%m-%d %H:%M:%S"
echo “★[$endDate] Successful------”
echo “----------------------------------------------------------------------------”
sleep $step
done
exit 0