Repair Spy
1 2 #!/bin/bash 3 # requires isightcapture http://www.intergalactic.de/hacks.html 4 5 # path to save the images 6 PATH=/Users/default/ 7 8 # flickr email address 9 EMAIL="yourflickremail+private@photos.flickr.com" 10 11 # tags to attach to each picture uploaded 12 TAGS="repair_spy" 13 14 TIMESTAMP=`/bin/date "+%y%m%d%H%M%S"` 15 FRIENDLY_TIMESTAMP=`/bin/date "+%Y/%m/%d %H:%M"` 16 17 #take pics 18 /usr/sbin/screencapture -mxC $PATHscreen_$TIMESTAMP.png 19 /usr/local/bin/isightcapture -t png $PATHisight_$TIMESTAMP.png 20 21 #post to flickr 22 /usr/bin/uuencode $PATHscreen_$TIMESTAMP.png $PATHscreen_$TIMESTAMP.png | /usr/bin/mail -s "Repair Spy Screenshot - $FRIENDLY_TIMESTAMP tags: $TAGS" $EMAIL 23 /usr/bin/uuencode $PATHisight_$TIMESTAMP.png $PATHisight_$TIMESTAMP.png | /usr/bin/mail -s "Repair Spy iSight Cature - $FRIENDLY_TIMESTAMP tags: $TAGS" $EMAIL
Toss this in your crontab like so, making sure to run it as the user that you provide to the Apple Techs
1 2 */1 * * * * default /Users/default/repair_spy >& /dev/null