|
From: Chris W. <ch...@cw...> - 2002-05-17 12:59:22
|
On Fri, 2002-05-17 at 02:06, Chris McDaniel wrote: > I would like to write a script that I could cron that would read in a csv > file and create user accounts based on the contents. I'd like to use OI > functions to ensure that security and whatnot gets set properly. I've > looked at the way users are created within OI, but I don't see a way to get > $R outside the web server (as there is not a request, right?). Is there > another way to call OI functionality without having a request to base if on? Check the script: $WEBSITE_DIR/pkg/base_security-x.xx/script/create_object_security.pl for an example. It's actually really easy! Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |