bin sh FNAME echo date md5sum awk print png URL http it-omsk com pub F

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#!/bin/sh
FNAME="$(echo $(date) | md5sum | awk '{ print $1}').png"
URL="http://it-omsk.com/pub/$FNAME"
import -window root -pause 2 /tmp/screen.png
scp /tmp/screen.png web@dedic:/web/it-omsk.com/pub/$FNAME
echo -n $URL | xclip
echo $URL
notify "Screenshot uri saved to X clipboard"