From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: bat File to Launch Remote X11 Application
Date: Tue, 23 Nov 2021 09:07:28 +0900 [thread overview]
Message-ID: <20211123090728.5af5b26a25220b55dec148bc@nifty.ne.jp> (raw)
In-Reply-To: <b1d63a2e-6399-5171-f642-e964a3fcb1e3@bellsouth.net>
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.yano@nifty.ne.jp>
next prev parent reply other threads:[~2021-11-23 0:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b1d63a2e-6399-5171-f642-e964a3fcb1e3.ref@bellsouth.net>
2021-11-22 19:15 ` Dennis Putnam
2021-11-23 0:07 ` Takashi Yano [this message]
2021-11-23 6:06 ` Brian Inglis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211123090728.5af5b26a25220b55dec148bc@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).