#!/bin/ksh # mshot URL out.xwd : load URL in Mosaic on the small display :7, grab the screen, close Mosaic DISPLAY=:7; export DISPLAY /usr/bin/Mosaic "$1" /tmp/mt/mosaic.log 2>&1 & pid=$! sleep 12 /usr/bin/X11/xwd -root -out $2 kill $pid