mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Update topterm9.sh
This commit is contained in:
parent
747e46db3d
commit
6f37fd1891
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user