On 2 March 2010 17:53, G. Ken Holman <[email protected]> wrote:
> At 2010-03-02 16:41 +0000, Andrew Welch wrote:
>>
>> Hi,
>>
>> It seems that everything you can do through the admin screen you can
>> do through a query... so rather give the customer a list of steps to
>> follow (create http server, create webdav server etc), I can shield
>> them from the admin screens and give them a query to run instead.
>>
>> The question is, what is the user-friendliest way for them to run that
>> xquery, when the person installing the application is likely to know
>> very little about MarkLogic?
>>
>> Is using the Docs dir the best way:
>>
>> 1) Install MarkLogic
>> 2) copy the "install.xqy" to [install dir]/Docs
>> 2) navigate to [hostname]:8000/install.xqy
>>
>> ...or is there another way?
>
> In the classroom I use "curl" to submit a composed query to
> "/use-cases/eval2.xqy", taking advantage of the ";" extension in "1.0-ml" to
> put multiple independent queries in the single submitted file.
>
> I compose the query using XSLT and command-line arguments, synthesizing the
> required load scripts by reading the contents of my exercise directories,
> producing the composed query that is then submitted to the server.
>
> Students merely install Mark Logic and then run the loading environment
> batch file in a very turnkey fashion.
>
> It does, however, expose the administration username and password in the
> synthesized batch file that invokes curl ... so it isn't a production
> approach.
>
> This was a very helpful suggestion from one of my students.

ahh great, thanks Ken.   I'm familiar with curl... that looks like the
answer (along with a .bat as its windows)

thanks
andrew



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to