ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 宝塔计划任务怎么设置成秒级执行 **可增加一个任务类型未shell脚本的类型,如图所示:** ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1636438331327-2a8999f7-8290-4e82-8c3c-0829b957f629.png) **脚本内容为(替换脚本里面的****你的域名****):** #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH step=28 for (( i = 0; i < 60; i=(i+step) )); do curl -sS --connect-timeout 10 -m 60 'http://你的域名/index/douyin/get\_key\_video' echo "----------------------------------------------------------------------------" endDate=`date +"%Y-%m-%d %H:%M:%S"` echo "★\[$endDate\] Successful" echo "----------------------------------------------------------------------------" sleep $step done exit 0