#!/bin/bash while true do echo "Next execution in 10 seconds...\n" sleep 10 curl --location --request POST 'http://127.0.0.1:3000/conversation' \ --header 'User-Agent: apifox/1.0.0 (https://www.apifox.cn)' \ --header 'Content-Type: application/json' \ --data-raw '{"message":"flutter 的状态库有哪些?"}' done
Shello 定时执行任务的脚本
6 min read