I've set up a scheduled task that's run through a cron job with a command line of the form /usr/bin/php-cgi /home/myaccount/sapphire/cli-script.php DailyTask . When testing on my local server, it works, the job gets run. But on the distant server, it keeps asking me to log in.
Do you have any idea on how to make authentication unnecessary when calling stuff through the command line ?
It seems you must not call cli-script.php but sake , that is : sh ....../sapphire/sake DailyTask . Easy. Figured it out this morning. Not sure if it depends on _ss_environnement.php being configured correctly but anyways, it works.
I answer my own question because it might help those who stumble across the dozen contradictory tips about this.