[Koha-bugs] [Bug 32059] New: How to run scripts found under https://perldoc.koha-community.org/

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 1 15:32:50 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32059

            Bug ID: 32059
           Summary: How to run scripts found under
                    https://perldoc.koha-community.org/
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Documentation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: mik at adminkuhn.ch
        QA Contact: testopia at bugs.koha-community.org

Documentation pages like
https://perldoc.koha-community.org/misc/migration_tools/bulkmarcimport.html do
not give the proper command to run the script. In the example section "Usage"
says:

$ export KOHA_CONF=/etc/koha.conf
$ perl misc/migration_tools/bulkmarcimport.pl -d -commit 1000 -file
/home/jmf/koha.mrc -n 3000

When using Debian package installation one way to actually run the program is:

As user "root":

# export KOHA_CONF=/etc/koha/sites/instancename/koha-conf.xml
# export PERL5LIB=/usr/share/koha/lib
# /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml
-framework=frameworkname -file TITEL.marcxml -v 2

But it seems the following way is recommended:

As user "koha":

$ sudo koha-shell -c
"/usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml
-framework=frameworkname -file TITEL.marcxml -v 2" instancename

Better documentation how to run this kind of scripts would be useful.
https://perldoc.koha-community.org/ shows many more such scripts.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list