#!/bin/sh
date=`date +%y%m%d_%H%M%S`
outfile="/tmp/xwininfo.$date"
xmessage -print "Select window for information" -center -timeout 5 &
xwininfo | tee "$outfile" 2<&1
xterm -e less "$outfile"
rm "$outfile"
