22992 Posts in 11842 Topics by 2828 members
|Go to End|
24 June 2010 at 2:14am
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 ?
29 June 2010 at 3:46am
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.
21 February 2011 at 2:04pm
Just so that's a bit clearer, sake is a shell script so needs to be run with something like
httpd -c '/bin/sh ........site_dir......../sapphire/sake DailyTask'
|Go to Top|