Lines 24-34
for x in HOME PERL5LIB KOHA_CONF ; do
Link Here
|
24 |
fi; |
24 |
fi; |
25 |
done; |
25 |
done; |
26 |
unset x; |
26 |
unset x; |
27 |
# you should hard code this if you have multiple directories |
27 |
# get the bin directory from the location of this script |
28 |
# in your PERL5LIB |
28 |
BINDIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" |
29 |
PERL_MODULE_DIR=$PERL5LIB |
|
|
30 |
cd $PERL_MODULE_DIR/C4/SIP; |
31 |
echo; |
32 |
|
29 |
|
33 |
sipconfig=${1}; |
30 |
sipconfig=${1}; |
34 |
outfile=${2:-$HOME/sip.out}; |
31 |
outfile=${2:-$HOME/sip.out}; |
Lines 37-44
errfile=${3:-$HOME/sip.err};
Link Here
|
37 |
if [ $sipconfig ]; then |
34 |
if [ $sipconfig ]; then |
38 |
echo "Running with config file located in $sipconfig" ; |
35 |
echo "Running with config file located in $sipconfig" ; |
39 |
echo "Calling (backgrounded):"; |
36 |
echo "Calling (backgrounded):"; |
40 |
echo "perl ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile"; |
37 |
echo "perl ./SIPServer $sipconfig >>$outfile 2>>$errfile"; |
41 |
perl ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile & |
38 |
$BINDIR/SIPServer $sipconfig >>$outfile 2>>$errfile & |
42 |
|
39 |
|
43 |
else |
40 |
else |
44 |
echo "Please specify a config file and try again." |
41 |
echo "Please specify a config file and try again." |