Tuesday, 7 April 2009

Bash script and perl script to take screenshots online

This perl script was a little bit modified be me, to be used with freeimagehosting, because with with imageshack stopped working :(

I made this script to use with key combinations to select when i want to post an screenshot online or not. (Note: you must change the perl script path...)

To post the screenshot online and automatically open with Firefox
sh send.sh 0
To just only save the
sh send.sh 1
filename=`date +%y%m%d%H%M%S`.png

mkdir /tmp/screens;
import $file -quality 100;

if [ $1 == 0 ];

firefox $( perl freeimagehosting.pl $file ) &

No comments:

Post a Comment