X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: From: Jacques Guillou Date: Mon, 9 Apr 2012 22:35:32 +0200 Message-ID: Subject: Problem starting an executable from SSH To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q39KaK9q011980 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") ? Thanks for your help Best regards Jacques -- 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