Custom Date range

Can anyone please advice how can i put the Custom Date range in the Cron script.
I am currently using
& $PHP_BIN -q -c $PHP_INI “$PIWIK_PATH” “–” "module=API&method=VisitsSummary.getVisits&idSite=9&period=range&date=2012-10-

9,2012-11-25&format=xml&token_auth=$TOKEN_AUTH"

But it doesn’t trigger the Archiving for the above range

Unfortuently this doesn’t work, you can force the cronjob to just run across all dates again by adding --force-all-websites --force-all-periods which will do all periods again. (Note this wont work if you’re using the web run cronjob)

I think this would be your best option.