public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* xwinclip & startxdmcp.bat questions/problems
@ 2003-11-19 17:38 Jay Smith
  2003-11-21 15:23 ` Holger Krull
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Smith @ 2003-11-19 17:38 UTC (permalink / raw)
  To: cygwin-xfree

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xwinclip & startxdmcp.bat questions/problems
  2003-11-19 17:38 xwinclip & startxdmcp.bat questions/problems Jay Smith
@ 2003-11-21 15:23 ` Holger Krull
  2003-11-21 17:47   ` Igor Pechtchanski
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Krull @ 2003-11-21 15:23 UTC (permalink / raw)
  To: cygwin-xfree

Jay Smith schrieb:

> 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.

You could start xwinclip with a link like this to prevent the DOS Window

D:\cygwin\bin\bash.exe -l -c "xwin +kb -xkbmap de -query murpel -from 
192.168.1.2 -fp tcp/192.168.1.1:7100 -dpi 100 -once -ac  &"


> 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 

As to my knowledge you have to live with that window, i know no way to 
get it in the background. That would be a bad idea anyway because


> 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 

you need to restart it manually if it stops working. I have a bash shell 
running and start
xwinclip --display 127.0.0.1:0.0
CTRL-C if it stops working and restart.

    Holger





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xwinclip & startxdmcp.bat questions/problems
  2003-11-21 15:23 ` Holger Krull
@ 2003-11-21 17:47   ` Igor Pechtchanski
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Pechtchanski @ 2003-11-21 17:47 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, 21 Nov 2003, Holger Krull wrote:

> Jay Smith schrieb:
>
> > 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
>
> As to my knowledge you have to live with that window, i know no way to
> get it in the background. That would be a bad idea anyway because

Try "/usr/X11R6/bin/run.exe /usr/X11R6/bin/xwinclip ...".
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-21 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 17:38 xwinclip & startxdmcp.bat questions/problems Jay Smith
2003-11-21 15:23 ` Holger Krull
2003-11-21 17:47   ` Igor Pechtchanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).