public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: David Karr <davidmichaelkarr@gmail.com>
To: cygwin-xfree@cygwin.com
Subject: Can display remote X window from bash, but not from DOS window
Date: Thu, 31 May 2012 17:08:00 -0000	[thread overview]
Message-ID: <CAA5t8Vp6FqXGUdW5e2g1BiEXhRsr0P7mLn8JRBLV152e7EmLzQ@mail.gmail.com> (raw)

I have a Win7 laptop with Cygwin and a Ubuntu desktop box.  I can ssh
from the laptop with shared keys and X11 forwarding, so that I can run
a simple command line in a Bash shell on the Win7 box and it will open
up the window for the remote process on my Win7 box.

What I'm having trouble with is setting up a Win7 desktop shortcut
that will do this.

I have a simple Bash script called "dt" (stands for "desktop") that
calls "ssh" and passes the scripts command line parameters to ssh.  As
I said, this works fine when I call it from a Bash shell window.

I wrote a DOS batch script that does something like this:

c:\cygwin\bin\bash -cl "=pathprefix=/dt =remote command line="

This bombs with numerous errors.  This is the first one:

(STS:30397): GLib-GObject-WARNING **: invalid (NULL) pointer instance

What's the correct way to do this?

--
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-05-31 17:08 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=CAA5t8Vp6FqXGUdW5e2g1BiEXhRsr0P7mLn8JRBLV152e7EmLzQ@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).