Oops... XWin-works is my known-good copy of XWin.exe. I do development work on XWin all the time, so I have to save a copy of XWin that works, thus XWin-works. I could have sworn that I removed the '-works' from the file name, but I guess I didn't.
Harold > -----Original Message----- > From: Victor Atkinson [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 29, 2002 4:57 PM > To: Harold Hunt > Subject: RE: Can multiple remote sessions be run simultaneously under > v4.2.0? > > > Harold, > > Thanks for the fast reply. However, your answer confuses me. I > do not have > any executable, script or batch file called "XWin-works". However, when I > modified your example to: > > > start /B XWin :0 -query host1 > > start /B XWin :1 -query host2 > > it works perfectly. > > I would swear that I tried that particular combination. (After being busy > with other things for a couple of days, then coming back and > taking a fresh > look at the documentation, etc, this solution seems obvious to me. Funny > how it works out that way sometimes.) > > Having had success with your suggestions, I modified the original > startxwin.bat batch file into something that gives me the > functionality that > I have been wanting. Below is a 4NT (my command-line-interpreter) batch > file that accepts a name of a host running XDM Chooser, then attempts to > start XWin on a free display. I don't yet know BASH script > programming, but > feel free to modify and distribute this as you see fit. > > begin XWinIndirect.btm > ----------------------------------------- > > @ echo off > > :: Check inputs. > iff %# lt 1 then > echo `Error! Command-line missing desired remote host for > XDMCP Chooser > query.` > quit 1 > endiff > > :: Set global environment variables. > set CYGWIN_ROOT=d:\cygwin > set PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH% > > :: Find unused X-Server display. > for /l %Counter in (0,1,9) ( > set TestFile=%CYGWIN_ROOT%\tmp\.X11-unix\X%Counter% > iff not exist %TestFile% then > set DisplayNumber=%Counter% > goto DisplayFound > endiff > ) > echo 'Error! No unused X-Server display found.' > quit 2 > > :DisplayFound > :: Set environment variables for specific X-Server instance. > set DISPLAY=127.0.0.1:%DisplayNumber% > echo `Found display `%DisplayNumber%` free, attempting to start > X-Server as > `%DISPLAY% > > :: Startup the X Server on the specified display. > start /B XWin :%DisplayNumber% -screen 0 1024 768 -indirect %1 > > ----------------------------------------- > begin XWinIndirect.btm > > Thanks again for your help. > > Victor Atkinson > Syracuse, NY, USA > > > > -----Original Message----- > > From: Harold Hunt [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 26, 2002 5:28 PM > > To: Victor Atkinson; [EMAIL PROTECTED] > > Subject: RE: Can multiple remote sessions be run simultaneously under > > v4.2.0? > > > > > > Victor, > > > > > And I have also tried setting the display to alternate values: > > > > > > start /B XWin -display :0 -query <host1> > > > start /B XWin -display :1 -query <host2> > > > > That is gibberish. It doesn't mean anything. > > > > What you want is: > > > > start /B XWin-works :0 -query host1 > > start /B XWin-works :1 -query host2 > > > > > > I've tested this and gotten two distinct sessions to one machine (say, > > host1) at the same time. I don't currently have two XDM hosts, > > but I'm sure > > it will work fine with two hosts. > > > > Let me know how this works. > > > > Harold > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Victor Atkinson > > > Sent: Tuesday, March 26, 2002 5:09 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Can multiple remote sessions be run simultaneously under > > > v4.2.0? > > > > > > > > > Greetings, > > > > > > Thanks to all for the quick replies. Unfortunately, I haven't > > > been able to > > > get a workable configuration together yet. I have tried both > > combinations > > > of screen 0 & 1 designations with XWin: > > > > > > Separate invocations: > > > > > > start /B XWin -screen 0 <width> <height> -query <host1> > > > start /B XWin -screen 1 <width> <height> -query <host2> > > > > > > Single invocation: > > > > > > start /B XWin -screen 0 <width> <height> -query <host1> > > > -screen 1 <width> > > > <height> -query <host2> > > > > > > And I have also tried setting the display to alternate values: > > > > > > start /B XWin -display :0 -query <host1> > > > start /B XWin -display :1 -query <host2> > > > > > > as well as all combinations of display & screen (0.0, 1.0, 1.1, > > > etc) for the > > > two sessions, both via the command line and the DISPLAY environment > > > variable. > > > > > > The results are almost always identical, first XWin starts and > > connects to > > > host1. However, when the second server starts, the first screen > > > appears to > > > be reset to and empty X server session (just blank > background) while the > > > second server connects to host2. When I am finished with host2 > > > and quit the > > > second session (close the window), then the first session gives > > me a login > > > prompt at host1 again. > > > > > > It appears as though there is some hardwired common display > > > behavior that is > > > common among all server instances, even if they are started > > from separate > > > XWin processes. > > > > > > I'll keep plugging away at it. I did setup VNC on the remote > > hosts again, > > > to do what I needed to do simultaneously on host1 and host2. > > It does seem > > > that VNC is much more of a bandwidth and processor load than > > > XFree86, which > > > doesn't really surprise me. (If my remote host screen saver > > > kicks in within > > > a VNC client window, it nearly brings my laptop to its knees, > but in the > > > same circumstance XFree86 is smooth.) > > > > > > Victor Atkinson > > > Syracuse, NY, USA > > > > > > > > > > > > > > On Tue, 19 Mar 2002, Staf Verhaegen wrote: > > > > > > > > > Use a different screen number for every session > > > > > % XWin -screen 0 width height -query host1 & > > > > > % XWin -screen 1 width height -query host2 & > > > > > % ... > > > > > > > > I don't expect this to work. Both will try to listen on > port 6000. You > > > have > > > > to modify the _display_ not the _screen_number. > > > > > > > > bye > > > > ago > > > > -- > > > > [EMAIL PROTECTED] > > > > http://www.gotti.org ICQ: 126018723 > > > > phone: +49 3725 349 80 80 mobile: +49 172 7854017 > > > > > > > > > > > > > > > >