Re: Multiple X Sessions on OSR 6
From: Jean-Pierre Radley (jpr_at_jpr.com)
Date: 10/23/05
- Previous message: Harold Stevens: "UnixWare 7.1.4 UnixWare 7.1.3 : ppp buffer overflow"
- In reply to: Bob Stockler: "Multiple X Sessions on OSR 6"
- Next in thread: Bob Stockler: "Re: Multiple X Sessions on OSR 6"
- Reply: Bob Stockler: "Re: Multiple X Sessions on OSR 6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Oct 2005 18:41:09 -0400
Bob Stockler typed (on Wed, Oct 19, 2005 at 08:26:02PM -0400):
|
| #!/bin/ksh
| # @(#) xstart - Start X using the lowest unused session number.
| integer i j ; cd /tmp ; set -A xs .X*-lock ; cd -
| for i in 0 1 2 3 4 5 6 7 8 9
| do session=${xs[$i]} ; session=${session#".X"}
| session=${session%"-lock"} ; j=$session
| (( i != j )) && {
| echo "exec /usr/bin/startx -- :$i"
| exec /usr/bin/startx -- :$i
| }
| done
It fails syntacticly if NO X-session is running at all, and
it also fails here for me if session 0 is running, with:
exec /usr/bin/startx -- :1
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
I get the same error if I just type 'startx -- :5'.
-- JP
- Previous message: Harold Stevens: "UnixWare 7.1.4 UnixWare 7.1.3 : ppp buffer overflow"
- In reply to: Bob Stockler: "Multiple X Sessions on OSR 6"
- Next in thread: Bob Stockler: "Re: Multiple X Sessions on OSR 6"
- Reply: Bob Stockler: "Re: Multiple X Sessions on OSR 6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]