Created
August 5, 2019 14:01
-
-
Save gabrielbidula/c3611c320b5fa5a7f60b77872a0f4fe6 to your computer and use it in GitHub Desktop.
shellscript to run a cron in range of dates
This file contains 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 | |
d=2019-04-01 | |
while [ "$d" != 2019-08-04 ]; do | |
echo $d | |
php artisan export:adverts:fetch:leads --date="$d" | |
d=$(date -I -d "$d + 1 day") | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment