xwinclip & startxdmcp.bat questions/problems

Jay Smith jay@JaySmith.com
Wed Nov 19 17:38:00 GMT 2003


Okay, I used the 'rcn' mirror to get xwinclip (and updated other stuff). 
[It sure would be nice if we knew which mirrors to use -- without having to 
look at every one.]

I changed the command in *my own script* (startxwinJSA.bat), which had 
worked up to this point, to read:
   start XWin -once -nodecoration -query jsa.jaysmith.com
   start xwinclip.exe

(My own script (startxwinJSA.bat) did a bunch of extra logging to see where 
errors were occuring, etc.)

That did *not* work; I got no login whereas I had previously.  So, I had to 
use the startxdmcp.bat script (given at bottom of this message) and added 
the above command changes to it.  I am not sure if startxdmcp.bat came with 
the XFree stuff or where it came from (it is possible that my systems guy 
came up with it, but I doubt it).

Apparently running 'start Xwin' in some other script causes 
'startxdmcp.bat' to run so stuff was running twice???

Anyway, the problem now is that:

a) I am still (same as before this upgrade) left with a DOS window for the 
startxdmcp that has to be manually closed.  Annoying, but not terrible.

b) I am additionally now left with *another* DOS window for xwinclip.  When 
I try to close it, it says that the program will terminate.  It is not 
desirable to have it there because I normally already run with 6-10 Windows 
  windows running and the task bar is pretty full. There are tons of 
"error" messages in the xwinclip DOS window (but the copy/paste is working 
fine).

c) Harold mentioned "restarting" xwinclip.  I have not been able to find 
any instructions on how to do this.  The xwinclip readme does not cover 
that.  Please advise.

Thanks for your help.  Sorry to be a pain, but to the non-tech user some of 
this is tough to parse out.

Jay


===== startxdmcp.bat ======

@echo off
SET DISPLAY=127.0.0.1:0.0
SET REMOTE_HOST=192.168.1.10
SET CYGWIN_ROOT=\cygwin

REM Cleanup after last run.
if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix

REM Startup the X Server and attempt to connect to a remote XDM server.

if "%OS%" == "Windows_NT" goto OS_NT

REM Windows 95/98/Me
echo startxdmcp.bat - Starting on Windows 95/98/Me

goto STARTUP

:OS_NT

REM Windows NT/2000/XP
echo startxdmcp.bat - Starting on Windows NT/2000/XP

:STARTUP

start XWin -once -nodecoration -query jsa.jaysmith.com
start xwinclip.exe




More information about the Cygwin-xfree mailing list