Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azbesthu/f8a12d8ebe633a4cbb13 to your computer and use it in GitHub Desktop.
Save azbesthu/f8a12d8ebe633a4cbb13 to your computer and use it in GitHub Desktop.
PCSENSOR=/usr/local/bin/pcsensor
while true
do
outtmp=`${PCSENSOR} -cm`
if [ $? -eq 0 ]; then
output=`echo $outtmp | awk '{print $1;}'`
echo $output
#echo "ok"
break
else
#echo "hiba"
sleep 1s
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment