mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Update topterm9.sh
This commit is contained in:
parent
747e46db3d
commit
6f37fd1891
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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
|
if [ $result -eq 0 ]; then
|
||||||
# open top on vt9
|
# open top on vt9
|
||||||
@ -9,4 +9,4 @@ setterm -blank 0 2>/dev/null
|
|||||||
else
|
else
|
||||||
echo "WARNING topterm9 already running - skipping"
|
echo "WARNING topterm9 already running - skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user