]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/edi_translator/edi_webrick.bash
LP#1539084: webstaff: sort column picker entries by class path and column labels
[Evergreen.git] / Open-ILS / src / edi_translator / edi_webrick.bash
1 #!/bin/bash
2 #
3 # A wrapper for the ruby-script
4
5
6 function die_msg {
7     echo $1;
8     exit 1;
9 }
10
11 lib='./acq_edi/lib';
12 script='./edi_webrick.rb';
13
14 [ -r "$script" ] || die_msg "Cannot read script at $script";
15 #[ -d "$lib"    ] || die_msg "Cannot find lib at $lib";
16 # This doesn't work?
17 #      export RUBYLIB=$lib
18
19 echo -n Starting translator in background with logging...
20
21 # This is necessary 
22 export RUBYOPT=rubygems
23
24 # Instead of logging to file, one could pipe to the logger command.
25 ruby $script --verbose >> /openils/var/log/edi_webrick.log 2>&1 &
26
27 echo done.