I need to run one script which will take one date as an argument. It is configured using cron to run on a daily basis, but I need to run it for a time range now. The issue is that this will fetch all results if it is ran for one day because of the huge size of the table. So is it possible to supply the each date from the start date dynamically from a shell script?
For example: if I need to run update_cron.php from '2013-10-05' then it needs to run
php update_cron.php '2013-10-05'
php update_cron.php '2013-10-06'
php update_cron.php '2013-10-07'
until today (or the end date which is specified). I am very new to shell scripting and so it will be helpful if someone can give an input to this.