Update 09_os_info.sh

This commit is contained in:
Yacine31
2024-06-18 01:52:07 +02:00
parent 2be3bf6552
commit 0f7a788c6b

View File

@@ -11,9 +11,9 @@ echo "<pre>"
ps -ef | grep tnslsnr | grep -v grep
echo "</pre>"
echo "<h2>Statut du listener <b>${ORACLE_SID}</b> :</h2>"
echo "<h2>Statut du listener :</h2>"
# 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