Update 09_os_info.sh

This commit is contained in:
Yacine31
2024-02-02 00:04:18 +01:00
parent 5563060ceb
commit b093e617bf

View File

@@ -15,9 +15,9 @@ echo "<h2>Statut des listeners :</h2>"
ps -ef | grep tnslsnr| grep -v grep | while read l
do
# Récupérer le chemin du binaire tnslsnr à partir de la sortie de ps
binary_path=echo $l | awk '{print $8}'
binary_path=$(echo $l | awk '{print $8}')
# Extraire le nom du listener
listener_name=$(echo $l | awk '{print $8}')
listener_name=$(echo $l | awk '{print $9}')
# Construire la commande lsnrctl status
lsnrctl_command="$binary_path status $listener_name"
# exécuter la commande