<HTML><HEAD><TITLE>Intranet TUXEDO MMA : Fichiers de gestion des tuxedo's</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<FORM name=creation action=file.php method=get><INPUT type=hidden value=C name=action>
<center><TEXTAREA name=text rows=20 cols=100>#!/bin/sh
##################################################################
echo "--------------------------------------------------------------------------------------------"
echo "$(date +"%d/%m/%Y %T") : Test de declenchement de reconfiguration de Tuxedo sur $(uname -n)"
echo "--------------------------------------------------------------------------------------------"
CurDir=`dirname $0`
cd $CurDir
SRepsup=`basename $PWD`
if [ "$SRepsup" != "exploit" ]
then echo "--------------------------------------------"
echo " ATTENTION MAUVAIS REPERTOIRE DE LANCEMENT "
echo " "
echo " Changez de repertoire "
echo " Relancez votre commande "
echo "--------------------------------------------"
exit
fi
. $PWD/setenv.sh 1>/dev/null 2>&1
flag_exit="o"
flag_swap_file=$(grep -v -e "^#" $RACINE_APPTUX/exploit/Rconf_tuxedo.ini | grep -e "swap_file" | awk -F"=" ' { print $2 } ')
if [ "$flag_swap_file" = "o" ]
then
echo " - Prise en compte des modifications sur le SI demande"
fi
if [ "$flag_swap_file" = "o" ]
then
# echo flag_swap_file=$flag_swap_file
echo "--------------------------------------------------------------------------------------------"
else
echo "--------------------------------------------------------------------------------------------"
echo "$(date +"%d/%m/%Y %T") : Pas de reconfiguration de tuxedo en cours de traitement sur $(uname -n)"
echo "--------------------------------------------------------------------------------------------"
exit
fi
echo "--------------------------------------------------------------------------------------------"
echo "$(date +"%d/%m/%Y %T") : Debut de la reconfiguration de Tuxedo sur $(uname -n)"
echo "--------------------------------------------------------------------------------------------"
# remise à linitial du fichier ini
cp $RACINE_APPTUX/exploit/Rconf_tuxedo.ini.inactif $RACINE_APPTUX/exploit/Rconf_tuxedo.ini
echo "$(date +"%d/%m/%Y %T") : Timer 120 secondes"
time sleep 120
if [ "$flag_swap_file" = "o" ]
then
sh renamenew.sh DIR=$RACINE_APPTUX/data
fi
echo "--------------------------------------------------------------------------------------------"
echo "$(date +"%d/%m/%Y %T") : Fin de la reconfiguration de Tuxedo sur $(uname -n)"
echo "--------------------------------------------------------------------------------------------"</TEXTAREA>
<p>
<A onclick="javascript
:document.creation.submit();" href="#" target=_self>Valider</A></form>
</BODY></HTML>
Partager