Created
May 4, 2016 12:18
-
-
Save cherepanov/cfb5b9459299fc5473a3b56cd005ba4e 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
upload_url="" | |
result_url="" | |
imdir="/home/ac/tmp" | |
fn=`date +%s`".png" | |
t="${imdir}/${fn}" | |
shutter -s -e -n --disable_systray --debug -o ${t} | |
resp=`curl -X POST -F "file=@${t}" ${upload_url}` | |
url="${result_url}/${resp}" | |
echo $url | |
echo $url | xclip -selection clipboard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment