Skip to content

Instantly share code, notes, and snippets.

@gabrielbidula
Created August 5, 2019 14:01
Show Gist options
  • Save gabrielbidula/c3611c320b5fa5a7f60b77872a0f4fe6 to your computer and use it in GitHub Desktop.
Save gabrielbidula/c3611c320b5fa5a7f60b77872a0f4fe6 to your computer and use it in GitHub Desktop.
shellscript to run a cron in range of dates
#!/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