X-Spam-Check-By: sourceware.org Date: Mon, 27 Aug 2007 17:07:20 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: openssh not reporting the correct errorlevel Message-ID: <20070827210719.GA8132@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070827115523 DOT AWF95381 AT mp6 DOT mc DOT surewest DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070827115523.AWF95381@mp6.mc.surewest.net> User-Agent: Mutt/1.5.16 (2007-06-09) 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 On Mon, Aug 27, 2007 at 11:55:23AM -0700, alaurente AT surewest DOT net wrote: >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 So, either use Tectia ssh (whatever that is) or investigate: http://cygwin.com/problems.html FYI, the above version does not represent a valid cygwin version number. The information at the above page will show you how to report a problem that will provide the version number and other useful information. cgf -- 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/