#!/bin/bash # # screenshot: takes a screenshot of a window to a file # # By Felipe Leme # screenshot,v 1.1 2001/05/05 05:42:51 felipeal Exp # PROGNAME=`echo $0 | sed 's#^.*/##'` if [ $# != 1 ] then echo "Usage: ${PROGNAME} .gif exit -1 fi FILE=$1.gif echo "Select the screen and click the mouse...." xwd -out ${FILE}