The manual GET request works when I run it myself in the browser.
But does not work when I run it as a cron task, with either
wget http://www.domain.org/?sm_command=build&sm_key=...
or
curl http://www.domain.org/index.php -d sm_command=build -d sm_key=... -g
Both commands successfully connect to the page, but the sitemap is not rebuilt.
Please help.