summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5528b06)
This requires Chris C's patch to move the scripts to the new location outside of C4.
To test:
run sip_run.sh with no arguments - it should fail with a message to add the path and try again.
Run sip_run.sh with a path to a valid SIPconfig.xml - it should start and run.
unset x;
cd $PERL5LIB/C4/SIP;
echo;
unset x;
cd $PERL5LIB/C4/SIP;
echo;
-echo Running from `pwd`;
-sipconfig=${1:-`pwd`/SIPconfig.xml};
outfile=${2:-$HOME/sip.out};
errfile=${3:-$HOME/sip.err};
outfile=${2:-$HOME/sip.out};
errfile=${3:-$HOME/sip.err};
-echo "Calling (backgrounded):";
-echo "perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile";
-perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile &
+if [ $sipconfig ]; then
+ echo "Running with config file located in $sipconfig" ;
+ echo "Calling (backgrounded):";
+ echo "perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile";
+ perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile &
+
+else
+ echo "Please specify a config file and try again."
+fi