Actually what I’m looking for is confirmation that the following is correct 
under the new and proper way to set up a script with parameters in launcher.xml 
in DSpace 1.7.1:



<command>

        <name>import</name>

        <description>Import items into DSpace</description>

        <step passuserargs="true">                                              
             ßDo I need the ‘passuserargs=”true”’ or is this only if you are 
going to specify addt’l

            <class>org.dspace.app.itemimport.ItemImport</class>                 
              parameters when the script is executed, like “./dspace import -t” 
(test)

                   <argument>-a</argument>

                   
<argument>[email protected]</argument<mailto:[email protected]%3c/argument>>

                   <argument>-c=2121/39071</argument>

                   <argument>-s=/dspace/tmp/imported/articles</argument>

                   
<argument>-m=/dspace/outfiles/imports/20090326_Articles.map</argument>

                   
<argument>>/dspace/outfiles/imports/20090326_Articles.out</argument>       ß Is 
this the correct place to put this?  I’m trying to write the output

        </step>                                                                 
                                                           from the script 
execution into a file.

</command>



Perhaps some detailed documentation could be provided in the Users’ Manual?  J

Thanks,

Sue





Sue Walker-Thornton

Software Developer/Database Administrator

NASA Langley Research Center|LITES Contract

(757) 224-4074





From: [email protected] [mailto:[email protected]] On Behalf Of Mark Diggory
Sent: Tuesday, June 21, 2011 7:49 PM
To: Stuart Lewis
Cc: Thornton, Susan M. (LARC-B702)[LITES]; [email protected]
Subject: Re: [Dspace-tech] How to set up scripts and parameters in launcher.xml 
in DSpace 1.7.1



Seems like your just asking for



./dspace import --add 
[email protected]<mailto:[email protected]> 
--collection=2121/39071 --source=/dspace/tmp/imported/articles

--mapfile=/dspace/outfiles/imports/20090326_Articles.map > 
/dspace/outfiles/imports/20090326_Articles.out



Mark



On Tue, Jun 21, 2011 at 2:27 PM, Stuart Lewis 
<[email protected]<mailto:[email protected]>> wrote:

Hi Sue,

Have you tried using the <argument> options?

  <command>
       <name>stat-general</name>
       <description>Compile the general statistics</description>
       <step passuserargs="false">
           <class>org.dspace.app.statistics.CreateStatReport</class>
           <argument>-r</argument>
           <argument>stat-general</argument>
       </step>
   </command>

You should be able to pass in command line options, and state whether or not 
you allow further parameters to be passed from the user calling the script.

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928<tel:%2B64%20%280%299%20373%207599%20x81928>




On 22/06/2011, at 4:47 AM, Thornton, Susan M. (LARC-B702)[LITES] wrote:

> Can someone please give me an example of how you would set up the execution 
> of a script, for example “import”, in /dspace/config/launcher.xml?  The 
> software comes delivered with the following:
>
> <command>
>         <name>import</name>
>         <description>Import items into DSpace</description>
>         <step>
>             <class>org.dspace.app.itemimport.ItemImport</class>
>         </step>
> </command>
>
> Here is the command line from our “import” script in DSpace 1.5.1:
>
> ./dsrun org.dspace.app.itemimport.ItemImport --add 
> [email protected]<mailto:[email protected]> 
> --collection=2121/39071 --source=/dspace/tmp/imported/articles
> --mapfile=/dspace/outfiles/imports/20090326_Articles.map > 
> /dspace/outfiles/imports/20090326_Articles.out
> How do I set all this up in launcher.xml?
>
> Note also that I am writing the output of the script into 
> /dspace/outfiles/imports/20090326_Articles.out.  How do I do this in 
> launcher.xml?
>
> Thanks in advance,
> Sue
>
>
> Sue Walker-Thornton
> Software Developer/Database Administrator
> NASA Langley Research Center|LITES Contract
> SGT, Inc.|130 Research Drive
> Hampton, Va.  23666
> Office: (757) 224-4074<tel:%28757%29%20224-4074>
> Mobile: (757) 506-9903<tel:%28757%29%20506-9903>
> Fax: (757) 224-4001<tel:%28757%29%20224-4001>
> [email protected]<mailto:[email protected]>
>

> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev_______________________________________________
> DSpace-tech mailing list
> [email protected]<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/dspace-tech



------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech




--
Mark R. Diggory
@mire - www.atmire.com<http://www.atmire.com/>
2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
Esperantolaan 4 - Heverlee 3001 - Belgium

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to