diff --git a/sh/09_os_info.sh b/sh/09_os_info.sh index 7462553..3576152 100644 --- a/sh/09_os_info.sh +++ b/sh/09_os_info.sh @@ -11,9 +11,9 @@ echo "
"
 ps -ef | grep tnslsnr | grep -v grep 
 echo "
" -echo "

Statut du listener ${ORACLE_SID} :

" +echo "

Statut du listener :

" # ps -ef | grep tnslsnr | egrep -i "LISTENER_${ORACLE_SID}" | grep -v grep | while read l -ps -ef | grep tnslsnr | egrep -i "${ORACLE_SID}" | grep -v grep | while read l +ps -ef | grep tnslsnr | egrep -i " LISTENER |${ORACLE_SID}" | grep -v grep | while read l do # Récupérer le chemin ORACLE_HOME à partir de la sortie de ps -ef # ---- La commande grep -o ne fonctionne pas sur AIX, on la remplace par perl -lne