Skip to content

Instantly share code, notes, and snippets.

@maxme
Created February 3, 2014 13:09
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 maxme/8783505 to your computer and use it in GitHub Desktop.
Save maxme/8783505 to your computer and use it in GitHub Desktop.
#!/bin/sh
CURDATE=$(date -Iseconds | sed s/:/-/g)
adb shell screencap -p /sdcard/screencap-$CURDATE.png
adb pull /sdcard/screencap-$CURDATE.png 2> /dev/null > /dev/null
adb shell rm /sdcard/screencap-$CURDATE.png
echo screencap-$CURDATE.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment