How to run koha Scripts in Command Line
Follow the steps as in the picture
- Define KOHA-CONF alias
- Search for Script in /usr/share/koha/bin/
- Run the Script as in picture below:
root@koha:/usr/share/koha/bin/maintenance# export KOHA_CONF=/etc/koha/sites/instance/koha-conf.xml
root@koha:/usr/share/koha/bin/maintenance# perl ./borrowers-force-messaging-defaults.pl
Output:
Since: 0000-00-00 1: L 2: L 3: L 4: L 5: L 6: L 7: UGST 8: UGST 9: L 10: PGST 11: UGST 12: L 13: S 17: UGST 18: UGST 19: S 20: S 21: UGST 22: UGST 23: PST 24: UGST 25: UGST 26: UGST 27: UGST 28: UGST 29: UGST 30: UGST
Please leave comments if useful
Compiled from Source: https://lists.katipo.co.nz/public/koha/2014-March/038966.html