Please unsubscribe me from the list. Thanks, Rao
On Tue, Mar 2, 2010 at 2:00 PM, <general-requ...@developer.marklogic.com>wrote: > Send General mailing list submissions to > general@developer.marklogic.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://xqzone.com/mailman/listinfo/general > or, via email, send a message with subject or body 'help' to > general-requ...@developer.marklogic.com > > You can reach the person managing the list at > general-ow...@developer.marklogic.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of General digest..." > > > Today's Topics: > > 1. RE: user installation using a query (Lee, David) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 2 Mar 2010 11:08:49 -0800 > From: "Lee, David" <d...@epocrates.com> > Subject: RE: [MarkLogic Dev General] user installation using a query > To: "General Mark Logic Developer Discussion" > <general@developer.marklogic.com> > Message-ID: <dd37f70d78609d4e9587d473fc61e0a716c1e...@postoffice> > Content-Type: text/plain; charset="us-ascii" > > -- Quote -> > Ok this sounds good - so assuming the initial configuration is in a > file called "setup.xqy" could you provide and example of how would the > user run it using xmlsh? > <-- > > If all you need to do is post a single xquery file then using curl on > your CD would probably be easiset. > Where something like xmlsh benifits is if you have to do more then that, > such as was mentioned in a previous post about dynamically creating the > configuration data using xslt or xquery then invoking dynamic queries to > the ML server. > xmlsh provides full cross-platform scripting of most major XML tools as > well as integration in the shell of XDM types directly so scripting this > sort of thing is exactly what its good at. > > To answer your question. > Presuming you have a CD with all the prerequisits for xmlsh (essentially > the Java runtime if it doesnt exist, plus the xmlsh runtime plus the ML > extension). And you have a simple file like setup.xqy > > You would make an xmlsh script file like this > > install.xsh > ----- > import module ml=marklogic > MLCONNECT=xcc://...connection string > ml:query -f setup.xqy > ---- > > Then run this in your .bat or .sh file as > > xmlsh install.xsh > > > > > > > > > -----Original Message----- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andrew > Welch > Sent: Tuesday, March 02, 2010 1:17 PM > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic Dev General] user installation using a query > > On 2 March 2010 18:04, Lee, David <d...@epocrates.com> wrote: > > 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 > > Ok this sounds good - so assuming the initial configuration is in a > file called "setup.xqy" could you provide and example of how would the > user run it using xmlsh? > > Fwiw, curl doesn't need installing, it would just need to be on the > disc, so the user could just run "install.bat" and that would be it > (providing the query it curls to eval2.xqy runs without a problem) > > > -- > Andrew Welch > http://andrewjwelch.com > Kernow: http://kernowforsaxon.sf.net/ > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://xqzone.com/mailman/listinfo/general > > > ------------------------------ > > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://xqzone.com/mailman/listinfo/general > > > End of General Digest, Vol 69, Issue 10 > *************************************** >
_______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general