OpenSSH
[Top] [All Lists]

Re: Patch to fix the 255 status code problem

To: <tim.mann@bt.com>
Subject: Re: Patch to fix the 255 status code problem
From: Daniel Kahn Gillmor <dkg-openssh.com@fifthhorseman.net>
Date: Wed, 31 Jan 2007 11:39:40 -0500
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <FB1AA5A4B2D3444F926032839CF31A760265C9E9@i2km10-ukbr.domain1.systemhost.net>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <FB1AA5A4B2D3444F926032839CF31A760265C9E9@i2km10-ukbr.domain1.systemhost.net>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
At 2007-01-31 15:53, tim.mann@bt.com said:

> Currently using openssh-4.5p1 on Solaris 8 in conjunction with
> Oracle 8i dataguard. Is there a patch available to prevent ssh
> returning status code 255 for a successful execution of a remote
> connection/command.

I believe it should already do what you need.  the man page [0] says:

  ssh exits with the exit status of the remote command or with 255 if
  an error occurred.

Can you provide more details about the problem you're having?  The
behavior it sounds like you want is already present on my setup here
(openssh 4.2p1 and 3.8.1p1 on linux 2.6).  My prompt shows the return
value of the previous command:

[0 dkg@baboon ~]$ ssh gorilla true
[0 dkg@baboon ~]$ ssh gorilla false
[1 dkg@baboon ~]$ 

hth,

        --dkg

[0] http://www.openbsd.org/cgi-bin/man.cgi?query=ssh
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>