You might want to consider the MarkLogic extension to xmlsh which provides cross-platform access to xml processing and sending requests via either HTTP or XCC. This is all "100% pure java" so the scripting, and the execution will run identically independent of the OS. (windows, linux/unix , mac ... anything with a Java 1.6 ). And since it can execute ad-hoc queries constructed dynamnically it doesn't rely on "/use-cases/eval2.xqy" pre-existing.
This way you don't have to write separate .BAT and .sh files for different OS's or depend on installations of additional 3rd party tools (like curl, perl, etc). http://www.xmlsh.org -David Lee -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Welch Sent: Tuesday, March 02, 2010 12:59 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] user installation using a query 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 _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
