Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cherepanov/cfb5b9459299fc5473a3b56cd005ba4e to your computer and use it in GitHub Desktop.
Save cherepanov/cfb5b9459299fc5473a3b56cd005ba4e to your computer and use it in GitHub Desktop.
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