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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/