Updated Script with default and custom IP

This commit is contained in:
Charmy Garg 2017-07-19 17:29:56 +05:30
parent 8f679ff68e
commit b332a7567d
2 changed files with 12 additions and 2 deletions

7
open-refine.log Normal file
View File

@ -0,0 +1,7 @@
Starting OpenRefine at 'http://192.168.2.219:3333/'
17:28:11.505 [ refine_server] Starting Server bound to '192.168.2.219:3333' (0ms)
17:28:11.507 [ refine_server] refine.memory size: 1400M JVM Max heap: 1407188992 (2ms)
17:28:11.517 [ refine_server] Initializing context: '/' from '/home/knodus/Documents/OpenRefine/main/webapp' (10ms)
17:28:11.579 [ refine_server] Starting autoreloading scanner... (62ms)
17:28:11.975 [ refine] Starting OpenRefine 2.7 [TRUNK]... (396ms)

View File

@ -1,3 +1,6 @@
echo 'Starting open refine'
nohup ./refine -i 192.168.2.121 > open-refine.log 2>&1 &
echo "open refine started, check log through - tail -f open-refine.log"
read -p "Enter IP Address [Default 127.0.0.1]: " ip
ip=${ip:-127.0.0.1}
nohup ./refine -i $ip > open-refine.log 2>&1 &
echo "Started Open-Refine on" $ip
echo "open refine started, check log through -> tail -f open-refine.log"