On Mon, 22 Nov 2021 14:15:32 -0500 Dennis Putnam wrote: > I have a remote X application on a Linux system that I want to launch > with a Windows bat file. My main problem is how to determine if Cygwin/X > is running and if not launch it. Once verified I think all I need to do > is use SSH -Y with the command that starts the X application. Can > someone help? TIA.
What about something like: set DISPLAY=:0 for /f "usebackq delims=" %%A in (`tasklist ^|find /C "XWin"`) do if %%A==0 start C:\cygwin64\bin\XWin %DISPLAY% -multiwindow c:\cygwin64\bin\ssh -Y 192.168.0.133 xterm Note that the above bat fails to start XWin if it is already started with DISPLAY other than :0. -- Takashi Yano <takashi.y...@nifty.ne.jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple