source: BOL/Multi_atlas/webpage_multi.sh @ 5226

Last change on this file since 5226 was 4341, checked in by musat, 2 years ago

Inclut environnement spirit et dernieres corrections (2/3)
IonelaMusat?

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2
3#set -v
4
5source ~/env_Multi_atlas.sh
6
7# Definition des coleurs d'affichage
8noir='\e[0;30m' gris='\e[1;30m' rougefonce='\e[0;31m' rose='\e[1;31m' vertfonce='\e[0;32m' vertclair='\e[1;32m' orange='\e[0;33m' jaune='\e[1;33m' bleufonce='\e[0;34m' bleuclair='\e[1;34m' violetfonce='\e[0;35m' violetclair='\e[1;35m' cyanfonce='\e[0;36m' cyanclair='\e[1;36m' grisclair='\e[0;37m' blanc='\e[1;37m' neutre='\e[0;m'
9
10
11login=`whoami`
12
13comp=$1
14
15HTML=https://${dthredds}/$login/lmdz/MultiSimu/$comp
16
17if [ 1 == 0 ]; then
18hostname=`hostname`
19if [ ${hostname:0:5} = cicla ] ; then
20DODSDIR=/thredds/ipsl
21dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
22HTML=https://${dthredds}/$login/lmdz/MultiSimu/$comp
23fi
24if [ ${hostname:0:5} = spiri ] ; then
25DODSDIR=/thredds/ipsl
26dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
27HTML=https://${dthredds}/$login/lmdz/MultiSimu/$comp
28fi
29if [ ${hostname:0:5} = camel ] ; then
30DODSDIR=/modfs/ipslfs/dods
31fi
32if [ ${hostname:0:5} = irene ] ; then
33DODSDIR=
34fi
35if [ ${hostname:0:5} = jean- ] ; then
36DODSDIR=
37fi
38fi
39
40echo -e "${noir}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
41echo -e "${bleufonce}YOUR MULTIATLAS IS AVAILABLE ON THE PAGE: : "
42rm -f tmp_web.txt
43cat <<  eod >> tmp_web.txt
44$HTML/ACCUEIL.html
45eod
46cat tmp_web.txt
47echo -e "${noir}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
Note: See TracBrowser for help on using the repository browser.