On Fri, Sep 10, 2004 at 01:00:13PM -0400, Matt Price wrote: > hi folks, > > I need to be able to test whether an x server is running on a given > display on localhost, for a script I'm writing (it's a python script > automating openoffice, but I could launch it from a bash wrapper no > problem). I don't know how to do that -- any hints?
Excerpt from my home-grown background randomizer: #! /bin/bash -x # snippage while [ -e /tmp/.X0-lock ] do # more snippage done -- The world's most effective spam filter: ln -sf /dev/full /var/mail/$USER -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]