delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/02/12:39:24

X-Spam-Check-By: sourceware.org
Message-ID: <4611319F.9080801@qualda.com>
Date: Mon, 02 Apr 2007 17:38:55 +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: <46112EBC DOT 9000705 AT qualda DOT com>
In-Reply-To: <46112EBC.9000705@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

> Fabio Román Arbelo wrote:
>
>     Hi!
>
>     I've been trying to launch the "ssh-host-config" from a Windows
>     command-line without success. I've been looking Cygwin
>     mailing-list but I haven't found anything that solves my problem.
>     For example, I've tried this:
>
>     c:\cygwin\bin> bash -c '"`/bin/ssh-host-config -y -c "ntsec" -p
>     10000`"'
>
>     And this is what I got:
>
>        /bin/ssh-host-config: line 110: uname: command not found
>        /bin/ssh-host-config: line 111: expr: command not found
>        /bin/ssh-host-config: line 113: [: -gt: unary operator expected
>        ...
>        /bin/ssh-host-config: line 424: [: -gt: unary operator expected
>        ...
>        WARNING: Adding ssh to   failed!
>
>
>     Host configuration finished. Have fun!: No such file or directory
>
>     Where "..." means more errors that I don't put here because they
>     are similar to these ones.
>     And if I do this:
>
>     bash ""ssh-host-config -y -c "ntsec" -p 10000""
>
>     I've got similar errors too. I would like to launch this script
>     from a C program, that's why I'm trying this. I'm able to execute
>     ".exe" cygwin programs, like "cygrunsrv", but I don't know what to
>     do with this script. Any advice would be great. 
>
>
> My WAG:
>
> d2u ssh-host-config
>
> Do this first.  If your invocations work, you'll need to convert other
> scripts you want to use in the same way.
>
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
>
Thanks Larry for your help!

Well, I've done this:

    u2d ssh-host-config

I though "unix2dos" is what I'm looking for. And now, after excuting this:
   
    c:\cygwin\bin> bash ""ssh-host-config -y -c "ntsec" -p 10000""

I got this:

    ssh-host-config: line 6: $'\r': command not found
    ssh-host-config: line 9: $'\r': command not found
    ssh-host-config: line 13: $'\r': command not found
    ssh-host-config: line 17: $'\r': command not found
    ssh-host-config: line 22: $'\r': command not found
    ssh-host-config: line 23: syntax error near unexpected token `$'\r''
    'sh-host-config: line 23: `request()

Any other advice? I'm really lost here.
Thanks!

--
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