Why is the if-compression not comparing the value?
idle_time=exec sudo -u home xprintidle
if [ "$idle_time" -ge 6000 ]
then
echo "hi"
fi
it is not working like that
Why is the if-compression not comparing the value?
idle_time=exec sudo -u home xprintidle
if [ "$idle_time" -ge 6000 ]
then
echo "hi"
fi
it is not working like that
Copyright © 2021 Jogjafile Inc.
First of all, I changed to line which you use to execute xprintidle as a different user. After that I adjusted the if clause, since there was an error as well.