delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=2.7 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
Message-id: | <4F8349E5.7000702@cygwin.com> |
Date: | Mon, 09 Apr 2012 16:43:17 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem starting an executable from SSH |
References: | <CAE4vMRd+-HGNC0OxkhybQUkVZFcB8nfrYex6kMp-vaRfBAG_2Q AT mail DOT gmail DOT com> <CAE4vMRdG+eVAKLL5qos1wznUotbAAUw4szeY2NiCwirOSt=ZAA AT mail DOT gmail DOT com> |
In-reply-to: | <CAE4vMRdG+eVAKLL5qos1wznUotbAAUw4szeY2NiCwirOSt=ZAA@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 4/9/2012 4:35 PM, Jacques Guillou wrote: > Hello, > > I have some trouble using SSH to remotely start an executable on a > Windows XP which is running SSHD on Cygwin. > If I log into the windows machine using a simple "$ ssh > username AT machine_name" command and then start the executable from the > BASH in interactive mode, then everything is fine, but I would > actually like to start the executable directly from the SSH > command-line with the following command: > $ echo "myExecutable" | ssh username AT machine_name "bash -s" > The problem is that, in that case, my executable (a C/C++ compiler ".exe" file) > starts successfully but then reports a failure during the check of the > validity of the license. > > So my questions: > - What actually happens when I log with SSH into a Cygwin machine ? > What scripts are started after the authentication has succeeded ? > - What could explain that the behavior of my executable is not the > same in both situations (started from interactive BASH session, or > started directly as input of "bash -s") ? According to the 'ssh' manpage: If command is specified, it is executed on the remote host instead of a login shell. Since you've specified 'bash -s', the statement above applies. Add '-l' and see if that helps. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |