Hi list.
Thank you Ben for your suggestion.
I tried to run
***************
cat /home/opensrf/records120.txt | ./marc_export -i -c /openils/conf/opensrf_core.xml \ -x /openils/conf/fm_IDL.xml -f XML --timeout 5 > exported_files.xml
*****************
such us a opensrf user and received following error
*************************************************************************
ls/conf/fm_IDL.xml -f XML > exported_files.xml
opensrf@eg-server:~/Evergreen-ILS-1.4.0.4/Open-ILS/src/support-scripts$ cat /home/opensrf/records120.txt|./marc_export -i -c /openils/conf/opensrf_core.xml \ -x /openils/conf/fm_IDL.xml -f XML > exported_files.xml
Retrieving Org Units ... OK
Retrieving Shelving locations ... OK
Can't open  -x: No such file or directory at ./marc_export line 126.
Use of uninitialized value in division (/) at ./marc_export line 224, <> line 4132. Use of uninitialized value in concatenation (.) or string at ./marc_export line 226, <> line 4132.

Exports Attempted : 4132
Exports Completed :
Overall Speed     : 0
Total Time Elapsed: 11.9286749362946 seconds
*********************************************************************
Could you explain the reason of this problem.
Araik.
----- Original Message ----- From: "Ben Shum" <bs...@biblio.org> To: "Evergreen Discussion Group" <open-ils-general@list.georgialibraries.org>
Sent: Monday, October 03, 2011 5:29 PM
Subject: Re: [OPEN-ILS-GENERAL] Export error


Hi Araik,

That error is coming from attempting to run the script as root instead of being the opensrf user. The "Can't locate OpenILS/Application..." part of the error is usually a sign that whatever you're trying to run needs to have the right environment paths set (which is usually the opensrf user account).

I would try switching over to the opensrf user on your machine and running that script again.

Looks like we'll need to be clearer about that in the doc page referenced.

-- Ben


----- Original Message -----
From: "Araik Manukyan" <ar...@flib.sci.am>
To: "Evergreen Discussion Group" <open-ils-general@list.georgialibraries.org>
Sent: Monday, October 3, 2011 7:55:22 AM
Subject: Re: [OPEN-ILS-GENERAL] Export error

Hi Dan.
Thank you for quick respond  about exporting data from Evergreen 1.4.0.4.
After your correcting in adresse
http://docs.evergreen-ils.org/1.6/draft/html/exportingbibrecordsintoMARC.html
I can create a text file list of the Bibliographic record IDs.
But  when I tried to use   marc_export, using the ID file you created in
step 1 to define which files to export.
cat /home/opensrf/records.txt | ./marc_export -i -c
/openils/conf/opensrf_core.xml \
-x /openils/conf/fm_IDL.xml -f XML --timeout 5 > exported_files.xml

the system pops out an error, namely this
***************************************************************************************
root@eg-server:/home/opensrf/Evergreen-ILS-1.4.0.4/Open-ILS/src/support-scripts#
cat /home/opensrf/records120.txt | ./marc_export -i -c
/openils/conf/opensrf_core.xml \-x /openils/conf/fm_IDL.xml -f XML --timeout
5 > /home/opensrf/exported_files.xml

Can't locate OpenILS/Application/AppUtils.pm in @INC (@INC contains:
/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .) at ./marc_export line 11.
BEGIN failed--compilation aborted at ./marc_export line 11.
*******************************************************************************************
Any suggestion/solution please.
Araik.

Reply via email to