From 6f37fd18919595bd790c880b039497f14aaadd41 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Sun, 10 Sep 2023 18:47:02 -0500 Subject: [PATCH] Update topterm9.sh --- topterm9.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/topterm9.sh b/topterm9.sh index dbc36ce..108f639 100644 --- a/topterm9.sh +++ b/topterm9.sh @@ -1,6 +1,6 @@ #!/bin/bash -result=$(ps ax |awk '/tty9/ {print }' |grep -c top) +result=$(ps ax |awk '/tty9/ {print $5}' |grep -c top) if [ $result -eq 0 ]; then # open top on vt9 @@ -9,4 +9,4 @@ setterm -blank 0 2>/dev/null else echo "WARNING topterm9 already running - skipping" fi - \ No newline at end of file +