Subversion Repositories wimsdev

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 reyssat 1
#! /bin/sh
2
#
3
# You can put here the name of your favorite browser.
4
 
5
BROWSER=mozilla
6
WIMSD_PORT=18881
7
 
8
#################################################
9
#						#
10
#          Do not touch the following		#
11
#						#
12
#################################################
13
 
14
cd `dirname $0`
15
WIMS_HOME=`pwd`
16
 
17
WIMSD_ACCEPT=local
18
export HOME WIMSD_PORT WIMSD_ACCEPT
19
rm -f tmp/wimsd
20
bin/wimsd&
21
sleep 1
22
ntest=`ps xa`
23
wimsdtest=`echo "$ntest" | grep wimsd | awk '{print $1}'`
24
if [ -z "$wimsdtest" ]; then
25
 echo Unable to bring up WIMS http server.
26
 exit 1
27
fi
28
 
29
ntest=`echo "$ntest" | grep $BROWSER | awk '{print $1}'`
30
for pid in $ntest
31
do
4491 bpr 32
 kill -s KILL $pid
2 reyssat 33
done
34
 
35
$BROWSER "http://localhost:$WIMSD_PORT/wims.cgi"
36
 
37
for pid in $wimsdtest
38
do
39
 kill $pid
40
done
41