Compiz FTP Screenshot AutoUploader

NOTE: updated by: http://www.gonza.cl/?p=2468
Create a folder called shots on your home folder, create an populate this content on upload.sh.

#!/bin/bash
NOW=$(date +"%m%d%Y%T")
echo $1 >> /home/dms/logshot.log
echo $NOW.png >> /home/dms/logshot.log
ftp_site=***
username=***
passwd=***
ftp -in <<EOF
open $ftp_site
user $username $passwd
passive
cd public_html
cd screenshots
put $1 /home/user/public_html/screenshots/$NOW.png
close
bye
EOF
echo $1 uploaded to $path !
echo http://www.web.com/screenshots/$NOW.png | xclip -selection c

in compiz activate screenshot plugin and you should write something like this:

 

closed