delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/27/14:56:00

X-Spam-Check-By: sourceware.org
From: <alaurente AT surewest DOT net>
Subject: openssh not reporting the correct errorlevel
To: cygwin AT cygwin DOT com
X-Mailer: Mirapoint Webmail Direct 3.7.5a-GA
MIME-Version: 1.0
Message-Id: <20070827115523.AWF95381@mp6.mc.surewest.net>
Date: Mon, 27 Aug 2007 11:55:23 -0700 (PDT)
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

Here are the command sequence I ran on Windows 2003 x86 SP2 servers (delhi is the hostname)

C:\>ssh delhi hostname
delhi

C:\>echo %errorlevel%
0

C:\>ssh delhi net
The syntax of this command is:


NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
      SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]


C:\>echo %errorlevel%
0

-------------------

ANALYSIS:
The errorlevel returned from the second command should be "1" instead of "0".  Tectia ssh is reporting the correct errorlevel but Cygwin openssh is not.  The DLL version I am using is: cygwin1.dll version 1005.4..0

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