User Tools

Site Tools


work_tools

Phone login check script

#!/bin/bash
#Vinny Huckaba Sep 2012 Rev 0.1
#status=`xscreensaver-command -watch`
#while [[ "$status"=UNBLANK ]]; do
while true
do
screensaver=`xscreensaver-command -time | awk '{print $4}'`
	if [[ "$screensaver" = non-blanked ]]; then
          echo "Sleeping 5 minutes before checking Phone Boy"
           sleep 300
		phone=`curl -s "http://stats##.com/pb4-list.php?group=34" | grep -A 3 Vinny | grep OUT | awk '{print $1}'`

	echo $phone
		if [[ "$phone" = OUT ]]; then
			echo "You must login to the phone first!"
#mpg123 gameover.mp3 
 mplayer -fs pvjajVf3BEc.flv
		#	adb shell am start -n com.android.music/.MusicBrowserActivity
		#	adb shell input keyevent 23
		#exit 1;
		fi
fi
done
work_tools.txt · Last modified: 2016/06/26 12:49 by vinny