123456789101112131415161718192021 |
- #!/bin/bash
- # 将特定的命令列表赋给变量
- COMMANDS=(
- "/usr/bin/php81/php artisan buildStory"
- "/usr/bin/php81/php artisan buildTitle"
- "/usr/bin/php81/php artisan buildKeyword"
- "/usr/bin/php81/php artisan buildSd"
- "/usr/bin/php81/php artisan getOpensdDetail"
- "/usr/bin/php81/php artisan buildPinyin"
- )
- while true
- do
- for command in "${COMMANDS[@]}"
- do
- $command # 执行特定命令
- done
- sleep 5 # 休眠5秒
- done
|