Simple Shell Trick
Here’s a file I use to get myself into the correct environment for a given Koha installation. I create one of these for each Koha I’m using or testing, then just source the file into my shell to put myself in the right directory, with the right ENV variables set.
#!/bin/bash # # source this file, e.g.: # . ./standard_export.shexport KOHA_CONF=/home/atz/koha/etc/etc/koha-conf.xml export KOHA_LOG=/home/atz/koha/log/production-intranet-error_log export OPAC_LOG=/home/atz/koha/log/production-opac-error_log export PERL5LIB=/home/atz/koha/production/koha echo KOHA_LOG = $KOHA_LOG echo OPAC_LOG = $OPAC_LOG echo KOHA_CONF = $KOHA_CONF echo PERL5LIB = $PERL5LIB cd $PERL5LIB

April 19th, 2009 at 9:29 am
[...] « Simple Shell Trick [...]