This commit is contained in:
10
scripts/news_broadcast.sh
Normal file
10
scripts/news_broadcast.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "新闻播报服务启动中..."
|
||||
while true
|
||||
do
|
||||
# 模拟每5秒输出一次新闻头条
|
||||
echo "[新闻播报] 当前时间: $(date '+%Y-%m-%d %H:%M:%S'),头条:今日科技新闻,新型AI技术发布!"
|
||||
sleep 5
|
||||
done
|
||||
|
||||
10
scripts/weather_report.sh
Normal file
10
scripts/weather_report.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "天气预报服务启动中..."
|
||||
while true
|
||||
do
|
||||
# 模拟每10秒输出一次天气预报
|
||||
echo "[天气预报] 当前时间: $(date '+%Y-%m-%d %H:%M:%S'),天气:晴朗,温度:25°C"
|
||||
sleep 10
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user