X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0	tests=BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: Cygstart through SSH tunnel
Date: Sat, 05 Feb 2011 01:05:20 -0800
Lines: 26
Message-ID: <iij3sh$s24$1@dough.gmane.org>
References: <30850233.post@talk.nabble.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15pre) Gecko/20110204 Lightning/1.0b2 Shredder/3.1.9pre
In-Reply-To: <30850233.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 02/04/2011 10:00 PM, davej1983 wrote:
> Hi, I'm fairly new to Cygwin, so this might be a pretty simple question, but
> so far I haven't had any luck finding an answer so far.
>
> I have an SSH server running on a remote computer, that I can log into using
> cygwin. While logged, if I use cygstart to try to open a file, or if I try
> to launch a program, it will not fully open/launch. For example, if I try to
> open a text file, notepad.exe will show up in the task manager, but won't
> actually open. Does anyone have any idea what I am doing wrong? Any help
> would be appreciated!
You're making the invalid assumption that Microsoft wrote a network 
aware windowing system. They didn't! It quite simply just doesn't work 
that way. There are no concepts like an X server, a display or the 
concept of saying "run this gui client here on this machine, but display 
it's window on another display". Indeed Windows just blindly assumes 
that you are logged in and present at the current machines physical 
CRT... oops - showing my age - monitor and (guessing here) that the 
appropriate structures are on the heap to put up this notepad.exe window 
on the current machine (in your example, the remote computer - which 
then fails, leaving notepad running but no visible window to interact with.

You might want to try installing Cygwin/X and using a true X server and 
X clients.
-- 
Andrew DeFaria <http://defaria.com>
One-seventh of your life is spent on Monday.


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

