#!/bin/sh Xnest -geometry 500x500 :7 > /dev/null 2>&1 & pid=${!} DISPLAY=:7 prove -v test/feh.i kill ${pid}