#!/bin/sh # its for those times your chatting and want to show a screenshot. # sometimes people use chat clients that cant directly see pics. # so you paste a url instead. (great for irc) # this script is for X11 (meaning your probalby on unix/linux). # it works best called from a menu and with ssh-agent running. # if anyone wants to use this as prior art, i made the first version # on august 18th 2004. # --pixelfairy SHAREHOST="youwebserver.null" SHAREPATH="public_html" SHAREURL="http://yourwebserver.null/~yournamehere" IMG=screenshot-`date +%s` xwd | xwdtopnm 2>/dev/null | pnmtopng 2>/dev/null | ssh $SHAREHOST "cat > $SHAREPATH/$IMG.png" xmessage "$SHAREURL$IMG.png"