From b093e617bfdcb94ecea696b45d7651bd020c565c Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Fri, 2 Feb 2024 00:04:18 +0100 Subject: [PATCH] Update 09_os_info.sh --- sh/09_os_info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/09_os_info.sh b/sh/09_os_info.sh index bea32ce..1966ac8 100644 --- a/sh/09_os_info.sh +++ b/sh/09_os_info.sh @@ -15,9 +15,9 @@ echo "

Statut des listeners :

" 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