#!/bin/bash BILDFORMAT="1280x1024" vncserver -geometry ${BILDFORMAT} -depth 24 2>&1 | fgrep "New 'X' desktop is" | awk '{print "vncviewer -AutoSelect=0 -FullColour",$NF}'