21300 Posts in 5735 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1539 Views |
-
Scheduled task authentication

24 June 2010 at 2:14am
Hello all.
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 ?
Thanks !
-
Re: Scheduled task authentication

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.
-
Re: Scheduled task authentication

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'
| 1539 Views | ||
|
Page:
1
|
Go to Top |

