Update topterm9.sh

This commit is contained in:
kneutron 2023-09-10 18:47:02 -05:00 committed by GitHub
parent 747e46db3d
commit 6f37fd1891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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