This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Problem starting an executable from SSH
- From: Jacques Guillou <jacques dot guillou at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 9 Apr 2012 22:35:32 +0200
- Subject: Problem starting an executable from SSH
- References: <CAE4vMRd+-HGNC0OxkhybQUkVZFcB8nfrYex6kMp-vaRfBAG_2Q@mail.gmail.com>
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@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@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