This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

openssh not reporting the correct errorlevel


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]