RE: FW: SSH/SFTP rc problem in Solaris.

2006-05-10 Thread Patrick Morris
This is different than what you first posted -- it doesn't have an ls -l at 
the end, so it exits with a different error code.
___
Sent with SnapperMail
www.snappermail.com

.. Original Message ...
On Tue, 9 May 2006 08:22:09 +0200 "Dony Pierre" <[EMAIL PROTECTED]> wrote:
>Hi Patrick,
>
>When I do the test on a RedHat, I get a rc 1 !.
>
>[EMAIL PROTECTED] ~]$ cat a.sftp
>get tuut.test
>
>[EMAIL PROTECTED] ~]$ sftp -b a.sftp localhost
>[EMAIL PROTECTED]'s password:
>sftp> get tuut.test
>Couldn't stat remote file: No such file or directory
>File "/home/donypie/tuut.test" not found.
>[EMAIL PROTECTED] ~]$ echo $?
>1
>[EMAIL PROTECTED] ~]$
>
>
>But I have received news from Sun concerning this problem and they said
>that : 
>
>Openssh sftp has changed in release 3.6p1, and *this* is why we are 
>seeing different behaviour e.g. on a Linux distribution which bundles
>a sufficiently recent OpenSSH suite.
>
>These newer sftp binaries will indeed exit with a nonzero status when 
>one of the batched subcommands did not succeed as requested, and of 
>course they will still do so when they encounter a protocol-level error.
>
>
>I hope they will implement these new features in SSH Sun as soon as
>possible.
>
>
>Thanks everybody.
>Pierre.
>
>
>-----Original Message-----
>From: Patrick Morris [mailto:[EMAIL PROTECTED] 
>Sent: vendredi 5 mai 2006 21:27
>To: secureshell@securityfocus.com
>Subject: RE: FW: SSH/SFTP rc problem in Solaris.
>
>Just tried this on a Red Hat box (EL4).  I get a return code of 0 for
>the same commands. 
>
>> > We have a SSH return code problem when we use SSH in batch in
>Solaris.
>> > We haven't this problem on RedHat. 
>> > 
>> > bash-2.05$ cat a.sftp
>> > ls -l
>> > pwd
>> > get b.txt
>> > ls -l
>> > bash-2.05$ sftp -b a.sftp scnsys11
>> > Connecting to scnsys11...
>> > Password: 
>> > sftp> ls -l
>> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
>> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
>> > -rw---0 9108 10   2387 Apr 21 11:18
>..bash_history
>> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
>> > drwx--0 9108 10512 Mar 22 17:11 .ssh
>> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
>> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
>> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
>> > -rw---0 9108 101021424 Mar 22 17:07 core
>> > sftp> pwd
>> > Remote working directory: /export/home/huysego
>> > sftp> get b.txt
>> > Couldn't stat remote file: No such file or directory File 
>> > "/export/home/huysego/b.txt" not found.
>> > sftp> ls -l
>> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
>> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
>> > -rw---0 9108 10   2387 Apr 21 11:18
>..bash_history
>> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
>> > drwx--0 9108 10512 Mar 22 17:11 .ssh
>> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
>> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
>> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
>> > -rw---0 9108 101021424 Mar 22 17:07 core
>> > sftp> 
>> > bash-2.05$ echo $?
>> > 0
>> > 
>
>> > 
>> > ** As you can see in this example, sftp gives a rc = 0. If you try 
>> > the
>same
>> > on RedHat, you will receive a rc not equal to 0.
>
>
>
>-
>Visit our website! http://ww


RE: FW: SSH/SFTP rc problem in Solaris.

2006-05-09 Thread Dony Pierre
Hi Patrick,

When I do the test on a RedHat, I get a rc 1 !.

[EMAIL PROTECTED] ~]$ cat a.sftp
get tuut.test

[EMAIL PROTECTED] ~]$ sftp -b a.sftp localhost
[EMAIL PROTECTED]'s password:
sftp> get tuut.test
Couldn't stat remote file: No such file or directory
File "/home/donypie/tuut.test" not found.
[EMAIL PROTECTED] ~]$ echo $?
1
[EMAIL PROTECTED] ~]$


But I have received news from Sun concerning this problem and they said
that : 

Openssh sftp has changed in release 3.6p1, and *this* is why we are 
seeing different behaviour e.g. on a Linux distribution which bundles
a sufficiently recent OpenSSH suite.

These newer sftp binaries will indeed exit with a nonzero status when 
one of the batched subcommands did not succeed as requested, and of 
course they will still do so when they encounter a protocol-level error.


I hope they will implement these new features in SSH Sun as soon as
possible.


Thanks everybody.
Pierre.


-Original Message-
From: Patrick Morris [mailto:[EMAIL PROTECTED] 
Sent: vendredi 5 mai 2006 21:27
To: secureshell@securityfocus.com
Subject: RE: FW: SSH/SFTP rc problem in Solaris.

Just tried this on a Red Hat box (EL4).  I get a return code of 0 for
the same commands. 

> > We have a SSH return code problem when we use SSH in batch in
Solaris.
> > We haven't this problem on RedHat. 
> > 
> > bash-2.05$ cat a.sftp
> > ls -l
> > pwd
> > get b.txt
> > ls -l
> > bash-2.05$ sftp -b a.sftp scnsys11
> > Connecting to scnsys11...
> > Password: 
> > sftp> ls -l
> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > -rw---0 9108 10   2387 Apr 21 11:18
..bash_history
> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > -rw---0 9108 101021424 Mar 22 17:07 core
> > sftp> pwd
> > Remote working directory: /export/home/huysego
> > sftp> get b.txt
> > Couldn't stat remote file: No such file or directory File 
> > "/export/home/huysego/b.txt" not found.
> > sftp> ls -l
> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > -rw---0 9108 10   2387 Apr 21 11:18
..bash_history
> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > -rw---0 9108 101021424 Mar 22 17:07 core
> > sftp> 
> > bash-2.05$ echo $?
> > 0
> > 

> > 
> > ** As you can see in this example, sftp gives a rc = 0. If you try 
> > the
same
> > on RedHat, you will receive a rc not equal to 0.



-
Visit our website! http://www.nbb.be

"DISCLAIMER: The content of this e-mail message should not be
construed as binding on the part of the National Bank of Belgium
(NBB) unless otherwise and previously stated. The opinions
expressed in this message are solely those of the author and do not
necessarily reflect NBB viewpoints, particularly when the content
of this message, or part thereof, is private by nature or does not
fall within the professional scope of its author."



Re: FW: SSH/SFTP rc problem in Solaris.

2006-05-08 Thread Jacob Pipkin
The second "ls -l" command successfully completes. Therefore the return code 
is zero. 

> > > We have a SSH return code problem when we use SSH in batch in Solaris.
> > > We haven't this problem on RedHat.
> > >
> > > bash-2.05$ cat a.sftp
> > > ls -l
> > > pwd
> > > get b.txt
> > > ls -l
> > > bash-2.05$ sftp -b a.sftp scnsys11
> > > Connecting to scnsys11...
> > > Password:
> > > sftp> ls -l
> > > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > > -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> > > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > > -rw---0 9108 101021424 Mar 22 17:07 core
> > > sftp> pwd
> > > Remote working directory: /export/home/huysego
> > > sftp> get b.txt
> > > Couldn't stat remote file: No such file or directory File
> > > "/export/home/huysego/b.txt" not found.
> > > sftp> ls -l
> > > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > > -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> > > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > > -rw---0 9108 101021424 Mar 22 17:07 core
> > > sftp>
> > > bash-2.05$ echo $?
> > > 0
>
> 
>
> > > 
> > > ** As you can see in this example, sftp gives a rc = 0. If you try
> > > the
>
> same
>
> > > on RedHat, you will receive a rc not equal to 0.


RE: FW: SSH/SFTP rc problem in Solaris.

2006-05-08 Thread Patrick Morris
Just tried this on a Red Hat box (EL4).  I get a return code of 0 for the
same commands. 

> > We have a SSH return code problem when we use SSH in batch in Solaris.
> > We haven't this problem on RedHat. 
> > 
> > bash-2.05$ cat a.sftp
> > ls -l
> > pwd
> > get b.txt
> > ls -l
> > bash-2.05$ sftp -b a.sftp scnsys11
> > Connecting to scnsys11...
> > Password: 
> > sftp> ls -l
> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > -rw---0 9108 101021424 Mar 22 17:07 core
> > sftp> pwd
> > Remote working directory: /export/home/huysego
> > sftp> get b.txt
> > Couldn't stat remote file: No such file or directory File 
> > "/export/home/huysego/b.txt" not found.
> > sftp> ls -l
> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > -rw---0 9108 101021424 Mar 22 17:07 core
> > sftp> 
> > bash-2.05$ echo $?
> > 0
> > 

> > 
> > ** As you can see in this example, sftp gives a rc = 0. If you try 
> > the
same
> > on RedHat, you will receive a rc not equal to 0.




Re: FW: SSH/SFTP rc problem in Solaris.

2006-05-05 Thread Marco . Correnti
Hi 

I think that the situation is that the latest return code displayed was 
the one returned by the latest command executed, in this case the ls -l 
command.

So I cannot see a problem in this particular case.

HTH

Marco Correnti
ESACERT

Marcelo Ravilet <[EMAIL PROTECTED]> wrote on 04/05/2006 19:24:54:

> 
> Hi dony,
> 
>I see an error when the get command try get the file b.txt, because
> this file not exist!, what's the idea with this script?
> 
> 
> Regards,
> Marcelo Ravilet
> 
> 
> El mié, 03-05-2006 a las 16:42 +0200, Dony Pierre escribió:
> > Hi all,
> > 
> > I use SSH client and server on a Solaris 9 server, version is : 
> > 
> > Client : 
> > 
> > bash-2.05# pkginfo -l SUNWsshu
> >PKGINST:  SUNWsshu
> >   NAME:  SSH Client and utilities, (Usr)
> >   CATEGORY:  system
> >   ARCH:  sparc
> >VERSION:  11.9.0,REV=2002.04.06.15.27
> >BASEDIR:  /
> > VENDOR:  Sun Microsystems, Inc.
> >   DESC:  Secure Shell protocol Client and associated Utilities
> > PSTAMP:  leo20060203150929
> >   INSTDATE:  Mar 28 2006 15:17
> >HOTLINE:  Please contact your local service provider
> > STATUS:  completely installed
> >  FILES:   11 installed pathnames
> >4 shared pathnames
> >4 directories
> >7 executables
> > 4907 blocks used (approx)
> > 
> > Server : 
> > 
> > bash-2.05# pkginfo -l SUNWsshdu
> >PKGINST:  SUNWsshdu
> >   NAME:  SSH Server, (Usr)
> >   CATEGORY:  system
> >   ARCH:  sparc
> >VERSION:  11.9.0,REV=2002.04.06.15.27
> >BASEDIR:  /
> > VENDOR:  Sun Microsystems, Inc.
> >   DESC:  Secure Shell protocol Server
> > PSTAMP:  leo20060206145323
> >   INSTDATE:  Mar 28 2006 15:16
> >HOTLINE:  Please contact your local service provider
> > STATUS:  completely installed
> >  FILES:5 installed pathnames
> >3 shared pathnames
> >3 directories
> >2 executables
> > 2147 blocks used (approx)
> > 
> > 
> > 
> > We have a SSH return code problem when we use SSH in batch in Solaris.
> > We haven't this problem on RedHat. 
> > 
> > bash-2.05$ cat a.sftp
> > ls -l
> > pwd
> > get b.txt
> > ls -l
> > bash-2.05$ sftp -b a.sftp scnsys11
> > Connecting to scnsys11...
> > Password: 
> > sftp> ls -l
> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > -rw---0 9108 101021424 Mar 22 17:07 core
> > sftp> pwd
> > Remote working directory: /export/home/huysego
> > sftp> get b.txt
> > Couldn't stat remote file: No such file or directory File
> > "/export/home/huysego/b.txt" not found.
> > sftp> ls -l
> > drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> > drwxr-xr-x0 01 512 Apr  3 14:23 ..
> > -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> > -rw---0 9108 10240 Mar 28 16:19 .sh_history
> > drwx--0 9108 10512 Mar 22 17:11 .ssh
> > drwx--0 9108 10512 Mar 22 16:00 .ssh2
> > -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> > -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> > -rw---0 9108 101021424 Mar 22 17:07 core
> > sftp> 
> > bash-2.05$ echo $?
> > 0
> > 

> > **
> > As you can see in this example, sftp gives a rc = 0. If you try the 
same
> > on RedHat, you will receive a rc not equal to 0.
> > 
> > Does anybody have a solution to this problem ? Or another SSH client 
we
> > can install in Solaris ?.
> > 
> > Thanks.
> > Regards.
> > Pierre.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > Visit our website! http://www.nbb.be
> > 
> > "DISCLAIMER: The content of this e-mail message should not be
> > construed as binding on the part of the National Bank of Belgium
> > (NBB) unless otherwise and previously stated. The opinions
> > expressed in this message are solely those of the author and do not
> > necessarily reflect NBB viewpoints, particularly when the content
> > of this message, or part thereof, is private by nature or does not
> > fall within the professional scope of its author."
> > 
> 



Re: FW: SSH/SFTP rc problem in Solaris.

2006-05-05 Thread Marcelo Ravilet

Hi dony,

I see an error when the get command try get the file b.txt, because
this file not exist!, what's the idea with this script?


Regards,
Marcelo Ravilet


El mié, 03-05-2006 a las 16:42 +0200, Dony Pierre escribió:
> Hi all,
> 
> I use SSH client and server on a Solaris 9 server, version is : 
> 
> Client : 
> 
> bash-2.05# pkginfo -l SUNWsshu
>PKGINST:  SUNWsshu
>   NAME:  SSH Client and utilities, (Usr)
>   CATEGORY:  system
>   ARCH:  sparc
>VERSION:  11.9.0,REV=2002.04.06.15.27
>BASEDIR:  /
> VENDOR:  Sun Microsystems, Inc.
>   DESC:  Secure Shell protocol Client and associated Utilities
> PSTAMP:  leo20060203150929
>   INSTDATE:  Mar 28 2006 15:17
>HOTLINE:  Please contact your local service provider
> STATUS:  completely installed
>  FILES:   11 installed pathnames
>4 shared pathnames
>4 directories
>7 executables
> 4907 blocks used (approx)
> 
> Server : 
> 
> bash-2.05# pkginfo -l SUNWsshdu
>PKGINST:  SUNWsshdu
>   NAME:  SSH Server, (Usr)
>   CATEGORY:  system
>   ARCH:  sparc
>VERSION:  11.9.0,REV=2002.04.06.15.27
>BASEDIR:  /
> VENDOR:  Sun Microsystems, Inc.
>   DESC:  Secure Shell protocol Server
> PSTAMP:  leo20060206145323
>   INSTDATE:  Mar 28 2006 15:16
>HOTLINE:  Please contact your local service provider
> STATUS:  completely installed
>  FILES:5 installed pathnames
>3 shared pathnames
>3 directories
>2 executables
> 2147 blocks used (approx)
> 
> 
> 
> We have a SSH return code problem when we use SSH in batch in Solaris.
> We haven't this problem on RedHat. 
> 
> bash-2.05$ cat a.sftp
> ls -l
> pwd
> get b.txt
> ls -l
> bash-2.05$ sftp -b a.sftp scnsys11
> Connecting to scnsys11...
> Password: 
> sftp> ls -l
> drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> drwxr-xr-x0 01 512 Apr  3 14:23 ..
> -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> -rw---0 9108 10240 Mar 28 16:19 .sh_history
> drwx--0 9108 10512 Mar 22 17:11 .ssh
> drwx--0 9108 10512 Mar 22 16:00 .ssh2
> -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> -rw---0 9108 101021424 Mar 22 17:07 core
> sftp> pwd
> Remote working directory: /export/home/huysego
> sftp> get b.txt
> Couldn't stat remote file: No such file or directory File
> "/export/home/huysego/b.txt" not found.
> sftp> ls -l
> drwxr-xr-x0 9108 10512 Apr 21 11:15 .
> drwxr-xr-x0 01 512 Apr  3 14:23 ..
> -rw---0 9108 10   2387 Apr 21 11:18 .bash_history
> -rw---0 9108 10240 Mar 28 16:19 .sh_history
> drwx--0 9108 10512 Mar 22 17:11 .ssh
> drwx--0 9108 10512 Mar 22 16:00 .ssh2
> -rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
> -rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
> -rw---0 9108 101021424 Mar 22 17:07 core
> sftp> 
> bash-2.05$ echo $?
> 0
> 
> **
> As you can see in this example, sftp gives a rc = 0. If you try the same
> on RedHat, you will receive a rc not equal to 0.
> 
> Does anybody have a solution to this problem ? Or another SSH client we
> can install in Solaris ?.
> 
> Thanks.
> Regards.
> Pierre.
> 
> 
> 
> 
> 
> 
> 
> 
> -
> Visit our website! http://www.nbb.be
> 
> "DISCLAIMER: The content of this e-mail message should not be
> construed as binding on the part of the National Bank of Belgium
> (NBB) unless otherwise and previously stated. The opinions
> expressed in this message are solely those of the author and do not
> necessarily reflect NBB viewpoints, particularly when the content
> of this message, or part thereof, is private by nature or does not
> fall within the professional scope of its author."
> 



FW: SSH/SFTP rc problem in Solaris.

2006-05-03 Thread Dony Pierre

Hi all,

I use SSH client and server on a Solaris 9 server, version is : 

Client : 

bash-2.05# pkginfo -l SUNWsshu
   PKGINST:  SUNWsshu
  NAME:  SSH Client and utilities, (Usr)
  CATEGORY:  system
  ARCH:  sparc
   VERSION:  11.9.0,REV=2002.04.06.15.27
   BASEDIR:  /
VENDOR:  Sun Microsystems, Inc.
  DESC:  Secure Shell protocol Client and associated Utilities
PSTAMP:  leo20060203150929
  INSTDATE:  Mar 28 2006 15:17
   HOTLINE:  Please contact your local service provider
STATUS:  completely installed
 FILES:   11 installed pathnames
   4 shared pathnames
   4 directories
   7 executables
4907 blocks used (approx)

Server : 

bash-2.05# pkginfo -l SUNWsshdu
   PKGINST:  SUNWsshdu
  NAME:  SSH Server, (Usr)
  CATEGORY:  system
  ARCH:  sparc
   VERSION:  11.9.0,REV=2002.04.06.15.27
   BASEDIR:  /
VENDOR:  Sun Microsystems, Inc.
  DESC:  Secure Shell protocol Server
PSTAMP:  leo20060206145323
  INSTDATE:  Mar 28 2006 15:16
   HOTLINE:  Please contact your local service provider
STATUS:  completely installed
 FILES:5 installed pathnames
   3 shared pathnames
   3 directories
   2 executables
2147 blocks used (approx)



We have a SSH return code problem when we use SSH in batch in Solaris.
We haven't this problem on RedHat. 

bash-2.05$ cat a.sftp
ls -l
pwd
get b.txt
ls -l
bash-2.05$ sftp -b a.sftp scnsys11
Connecting to scnsys11...
Password: 
sftp> ls -l
drwxr-xr-x0 9108 10512 Apr 21 11:15 .
drwxr-xr-x0 01 512 Apr  3 14:23 ..
-rw---0 9108 10   2387 Apr 21 11:18 .bash_history
-rw---0 9108 10240 Mar 28 16:19 .sh_history
drwx--0 9108 10512 Mar 22 17:11 .ssh
drwx--0 9108 10512 Mar 22 16:00 .ssh2
-rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
-rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
-rw---0 9108 101021424 Mar 22 17:07 core
sftp> pwd
Remote working directory: /export/home/huysego
sftp> get b.txt
Couldn't stat remote file: No such file or directory File
"/export/home/huysego/b.txt" not found.
sftp> ls -l
drwxr-xr-x0 9108 10512 Apr 21 11:15 .
drwxr-xr-x0 01 512 Apr  3 14:23 ..
-rw---0 9108 10   2387 Apr 21 11:18 .bash_history
-rw---0 9108 10240 Mar 28 16:19 .sh_history
drwx--0 9108 10512 Mar 22 17:11 .ssh
drwx--0 9108 10512 Mar 22 16:00 .ssh2
-rwxrwxrwx0 9108 10 26 Mar 29 15:22 a.sftp
-rwxrwxrwx0 9108 10  0 Mar 28 15:28 a.txt
-rw---0 9108 101021424 Mar 22 17:07 core
sftp> 
bash-2.05$ echo $?
0

**
As you can see in this example, sftp gives a rc = 0. If you try the same
on RedHat, you will receive a rc not equal to 0.

Does anybody have a solution to this problem ? Or another SSH client we
can install in Solaris ?.

Thanks.
Regards.
Pierre.








-
Visit our website! http://www.nbb.be

"DISCLAIMER: The content of this e-mail message should not be
construed as binding on the part of the National Bank of Belgium
(NBB) unless otherwise and previously stated. The opinions
expressed in this message are solely those of the author and do not
necessarily reflect NBB viewpoints, particularly when the content
of this message, or part thereof, is private by nature or does not
fall within the professional scope of its author."