This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COMMANDS[0]="php current/artisan schedule:run" | |
COMMANDS[1]="php current/artisan queue:work --tries=3" | |
ITERATIONS=30 # how often should be the commands repeated | |
INTERVAL=60 # how should the pause between iterations (in seconds) | |
for ((i=1; i<=$ITERATIONS; i++)); do |