Created
December 26, 2013 13:00
-
-
Save sugoi-wada/8133573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILENAME="screenshot_`date \"+%Y%m%d%H%M%S\"`.png" | |
while getopts n: opt | |
do | |
if test $opt = "n" | |
then | |
FILENAME=${OPTARG} | |
fi | |
done | |
adb shell screencap -p /sdcard/$FILENAME | |
adb pull /sdcard/$FILENAME | |
adb shell rm /sdcard/$FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment