Skip to content

Instantly share code, notes, and snippets.

@v9n
Created August 15, 2011 08:54
Show Gist options
  • Select an option

  • Save v9n/1145922 to your computer and use it in GitHub Desktop.

Select an option

Save v9n/1145922 to your computer and use it in GitHub Desktop.
Take Screeenshot and upload to some servies
#!/bin/bash
#
domain="http://localhost:4567"
file="/tmp/shot.$RANDOM.png"
import -window root $file
curl -v -F "file=@$file" $domain/upload
notify-send "Uploaded $file"
rm $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment