the script I use on linux:
#!/bin/bash
userid="your id here"
myfile=$(date +%Y%m%d%S).png
scrot -s "/home/mononofu/Dropbox/public/$myfile"
echo "http://dl.dropbox.com/u/$userid/$myfile | xclip -selection c
notify-send "Done"