#!/bin/sh # # xfirestfreedisplay - print the :$i of the first unused X display # # $Id$ seq 100 | while read i do xset -display :$i q >/dev/null 2>/dev/null || exec echo :$i done exit 1 # no free display found ?!