On Fri, Feb 22, 2002 at 05:35:59PM +1100, [EMAIL PROTECTED] wrote:
> Here's a correction to that script I posted, that tells you the next
> available X11 display number, so you can automatically start up
> multiple X sessions.

Theres a trick thats sometimes helpful when greping the output of ps,
ps aux | grep [g]etty won't catch the grep process but will still get all the
gettys. 

My X command line args are different to yours, so your script doesn't work
on my box. Here's an alternate way to find a free screen, I don't know how 
portable it is, though:

for SCREEN in `seq 0 3` 
do
    if [ ! -f "/tmp/.X$SCREEN-lock" ]
    then
        echo "$SCREEN"
        break
    fi
done



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to