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 +