Files
campanula/examples/crontab/week.sh

12 lines
287 B
Bash
Executable File

#!/bin/bash
# Loop 6 times (60 seconds / 10 seconds = 6 iterations)
for i in {1..6}; do
php /var/www/campanula/garden/campanula/system/public/telegram_week.php
# Wait 10 seconds before next iteration (skip sleep after the last run)
if [ $i -lt 6 ]; then
sleep 5
fi
done