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