7 if [ -z $JPP_DIR ]; then
8 echo "Variable JPP_DIR undefined."
12 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
14 set_variable COOKIE `getCookie`
16 if ( do_usage $* ); then
22 if [[ -f $COOKIE ]]; then
24 JPrintDB -C $COOKIE -q detector >& /dev/null
26 if (( $? != 0 )); then
27 echo "Remove broken cookie file $COOKIE";
32 if [[ ! -f $COOKIE ]]; then
34 if [[ -z "$DBCOOKIE" ]]; then
41 wget --no-check-certificate \
42 "https://km3netdbweb.in2p3.fr/home.htm?usr=${USR}&pwd=${PWD}&persist=y" \
43 -O $COOKIE && sed -i -- "s/sid=/.in2p3.fr\\tTRUE\\t\/\\tTRUE\\t0\\tsid\\t/g" $COOKIE
45 if [[ ! -f $COOKIE ]]; then
46 fatal "No cookie $COOKIE"
50 echo "Using DBCOOKIE; unset to disable."