public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: David Karr <davidmichaelkarr@gmail.com>
To: cygwin-xfree@cygwin.com
Subject: Some remote windows opened from batch file abort after a few seconds, unless started from rxvt
Date: Mon, 04 Jun 2012 16:10:00 -0000	[thread overview]
Message-ID: <CAA5t8VrktzpDuwDpg75FrwxKODLrPjoSZ=Ow0HRpzp7bNmzOKw@mail.gmail.com> (raw)

I have a Win7 laptop with Cygwin and an Ubuntu desktop box.  I have
some simple scripts that start a process on the Ubuntu box and display
the window on the Win7 box.

I have a desktop shortcut that executes a batch file that looks like this:

C:\Cygwin\bin\rxvt.exe -e /bin/bash -lc "/home/me/bin/dtsts"

The "dtsts" batch file looks like this:

#! /bin/bash
dt /home/me/bin/sts

The "dt" script does this:

#! /bin/bash
ssh -fY me@nn.nn.nn.nn "$@"

When I double-click this shortcut on the desktop, Eclipse presents the
splash screen, and then the main window.  It chugs for a few seconds,
and then disappears. I also see the DOS window show up and go away
quickly, and then an rxvt window appears and then goes away after a
few seconds.  These two windows appear and disappear before the
Eclipse splash screen appears.

if I instead bring up a local rxvt window and then run "dtsts",
Eclipse starts up fine and stays up.

These examples are for starting 'sts" (SpringSource Tool Suite).  I
have a similar chain for "term" (gnome-terminal), Emacs, and Firefox.
The first two do not have this problem. When I run the Firefox
example, I never even see the window.  It still works fine when I run
"dtfirefox" from an rxvt window.

Note that I'm not manually backgrounding any of these scripts.

Any ideas?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


                 reply	other threads:[~2012-06-04 16:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAA5t8VrktzpDuwDpg75FrwxKODLrPjoSZ=Ow0HRpzp7bNmzOKw@mail.gmail.com' \
    --to=davidmichaelkarr@gmail.com \
    --cc=cygwin-xfree@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).