delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/03/05:23:41

X-Spam-Check-By: sourceware.org
Message-ID: <46121CF7.2080207@qualda.com>
Date: Tue, 03 Apr 2007 10:23:03 +0100
From: =?ISO-8859-1?Q?Fabio_Rom=E1n_Arbelo?= <fabio DOT roman AT qualda DOT com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: RE: Execute "ssh-host-config" from Windows command-line (or from a C program)
References: <46121C2A DOT 9020004 AT qualda DOT com>
In-Reply-To: <46121C2A.9020004@qualda.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

>   Right, that's what you'd expect, because the backticks mean "execute this
> command, then substitute all the output it generates in place on the command
> line".  So you're telling bash to run ssh-host config and then treat all the
> messages it outputs as commands to execute!
>
>   Also, because you didn't pass --login to bash, it hasn't run .bashrc or any
> of the other things that would set the path, which might account for some of
> the 'command not found' problems.
>
>   Also, you just trashed ssh-host-config by using u2d when what was suggested
> was in fact d2u.  You'd better go and d2u it now.  Perhaps twice, just to be
> on the safe side.  Then try that first command again, but remove the
> backticks.
>
>     cheers,
>       DaveK
> -- 
> Can't think of a witty .sigline today....
>
Ok, now it works.

    c:\cygwin\bin> d2u ssh-host-config
    c:\cygwin\bin> bash --login -c "/bin/ssh-host-config -y -c "ntsec" 
-p 10000"

Thanks very much for your help!


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019