#!/bin/sh
export QQNX_PHYSICAL_SCREEN_SIZE=214,135
on -p 2 -R 0x80 kria-cluster-3d-demo > /dev/null 2>&1 &
sleep 1
tr=$(ggpm a -s 1 -t 1000 -v 2 | grep data | awk -F ',' '{print $5}' | awk -F '.' '{print $1}')
val=40
if [ $tr -le $val ];then
echo "${tr}<=${val}"
on -p 2 -R 0x80 kria-cluster-3d-demo > /dev/null 2>&1 &
on -p 2 -R 0x80 kria-cluster-3d-demo > /dev/null 2>&1 &
else
echo "${tr}>${val}"
on -p 2 -R 0x80 kria-cluster-3d-demo > /dev/null 2>&1 &
fi
~
|