Quantcast

Running XUpdate from the command line

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Running XUpdate from the command line

Prerovsky, Clemens
Hi,
 
I wonder how to run an XUpdate from the command line. Therefore I followed the description found at http://wiki.exist-db.org/space/FAQs/XUpdate, but it did'nt work. Here's the XML-File I've used:
 
<?xml version="1.0" encoding="UTF-8"?>
<xupdate:modifications version="1.0"
    xmlns:xupdate="http://www.xmldb.org/xupdate">
<xupdate:append select="/Projekt[@ProjektID='P399']//*"><xupdate:attribute name="User">unknown</xupdate:attribute></xupdate:append>
</xupdate:modifications>
 
... and the commands:
 
server02:/usr/local/eXist # ./bin/client.sh -u admin -p -c /db/main -X xupdate.xml
eXist version 1.0, Copyright (C) 2004 Wolfgang Meier
eXist comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; for details read the license file.
 
password: ********
parsed 0 bytes in 1ms.
Nothing happened. My desired goal was to add an attribute named "User" to all childs of /Projekt with ProjektID set to P399.
Any hints on this?

Best regards,
Clemens Prerovsky
 
BEKO Engineering & Informatik AG
IT Services / Objektorientierung
Modecenterstra├če 22/A1
1030 Vienna
Austria
Tel. +43 / 1 / 797 50 - 217
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running XUpdate from the command line

Michael Beddow-2
Clemens Prerovsky wrote:

> I wonder how to run an XUpdate from the command line.

On the road right now and so can't test, but (daft though it sounds) did you
try leaving out the spaces between the last two switches and the
parameters --  ie instead of
-c /db/main -X xupdate.xml
try
-c/db/main -Xxupdate.xml
or maybe just
-c/db/main -X xupdate.xml

This has been a problem with passing paths or filenames to eXist command
line shells in the past (with old-style single-letter switches, has been OK
with --long-form types), so it might be worth trying here.

Michael Beddow



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...