#!/bin/bash # Author Sid # Date 16/12/08 i=1 while [ -f "/root/.vnc/FLY:$i.pid" ]; do let i+=1; done exec vncserver :$i