X-Spam-Check-By: sourceware.org Message-ID: <31b7d2790708281001s6ccd5e4bx85a9aee3bbcf3c9d@mail.gmail.com> Date: Tue, 28 Aug 2007 12:01:40 -0500 From: "DePriest, Jason R." To: cygwin AT cygwin DOT com Subject: Re: openssh not reporting the correct errorlevel In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070827115523 DOT AWF95381 AT mp6 DOT mc DOT surewest DOT net> X-IsSubscribed: yes 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 8/28/07, Thorsten Kampe <> wrote: > * (Mon, 27 Aug 2007 11:55:23 -0700 (PDT)) > > Here are the command sequence I ran on Windows 2003 x86 SP2 servers (delhi is the hostname) > > 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". > > Sorry, but that's ridiculous. You shouldn't use command line > applications if you don't have a basic understanding of what you're > doing. > > The output you gave is *not* from "ssh delhi net" but from "net delhi > ssh" (or "net ssh delhi"). Net(.exe) is a Windows app. Do yourself a > favour: use PuTTY. > > > Thorsten > The command entered looks correct to me. He is connecting to remote host 'delhi' using ssh and executing the 'net' command on 'delhi' which correctly outputs its usage information. Ssh then disconnects and returns him to the local system. -Jason -- 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/