=0D=0AHi all,=0D=0A=0D=0AI use SSH client and server on a Solaris 9 server,=
version is : =0D=0A=0D=0AClient : =0D=0A********=0D=0Abash-2=2E05# pkginfo=
-l SUNWsshu=0D=0A PKGINST: SUNWsshu=0D=0A NAME: SSH Client and ut=
ilities, (Usr)=0D=0A CATEGORY: system=0D=0A ARCH: sparc=0D=0A VER=
SION: 11=2E9=2E0,REV=3D2002=2E04=2E06=2E15=2E27=0D=0A BASEDIR: /=0D=0A =
VENDOR: Sun Microsystems, Inc=2E=0D=0A DESC: Secure Shell protoco=
l Client and associated Utilities=0D=0A PSTAMP: leo20060203150929=0D=0A=
INSTDATE: Mar 28 2006 15:17=0D=0A HOTLINE: Please contact your local =
service provider=0D=0A STATUS: completely installed=0D=0A FILES: =
11 installed pathnames=0D=0A 4 shared pathnames=0D=0A=
4 directories=0D=0A 7 executables=0D=
=0A 4907 blocks used (approx)=0D=0A=0D=0AServer : =0D=0A****=
****=0D=0Abash-2=2E05# pkginfo -l SUNWsshdu=0D=0A PKGINST: SUNWsshdu=0D=
=0A NAME: SSH Server, (Usr)=0D=0A CATEGORY: system=0D=0A ARCH:=
sparc=0D=0A VERSION: 11=2E9=2E0,REV=3D2002=2E04=2E06=2E15=2E27=0D=0A =
BASEDIR: /=0D=0A VENDOR: Sun Microsystems, Inc=2E=0D=0A DESC: S=
ecure Shell protocol Server=0D=0A PSTAMP: leo20060206145323=0D=0A INST=
DATE: Mar 28 2006 15:16=0D=0A HOTLINE: Please contact your local servic=
e provider=0D=0A STATUS: completely installed=0D=0A FILES: 5=
installed pathnames=0D=0A 3 shared pathnames=0D=0A =
3 directories=0D=0A 2 executables=0D=0A =
2147 blocks used (approx)=0D=0A=0D=0A=0D=0A=0D=0AWe have a SSH r=
eturn code problem when we use SSH in batch in Solaris=2E=0D=0AWe haven't t=
his problem on RedHat=2E =0D=0A=0D=0Abash-2=2E05$ cat a=2Esftp=0D=0Als -l=
=0D=0Apwd=0D=0Aget b=2Etxt=0D=0Als -l=0D=0Abash-2=2E05$ sftp -b a=2Esftp sc=
nsys11=0D=0AConnecting to scnsys11=2E=2E=2E=0D=0APassword: =0D=0Asftp> ls -=
l=0D=0Adrwxr-xr-x 0 9108 10 512 Apr 21 11:15 =2E=0D=0Adrw=
xr-xr-x 0 0 1 512 Apr 3 14:23 =2E=2E=0D=0A-rw-------=
0 9108 10 2387 Apr 21 11:18 =2Ebash_history=0D=0A-rw-----=
-- 0 9108 10 240 Mar 28 16:19 =2Esh_history=0D=0Adrwx----=
-- 0 9108 10 512 Mar 22 17:11 =2Essh=0D=0Adrwx------ 0=
9108 10 512 Mar 22 16:00 =2Essh2=0D=0A-rwxrwxrwx 0 9108 =
10 26 Mar 29 15:22 a=2Esftp=0D=0A-rwxrwxrwx 0 9108 1=
0 0 Mar 28 15:28 a=2Etxt=0D=0A-rw------- 0 9108 10 =
1021424 Mar 22 17:07 core=0D=0Asftp> pwd=0D=0ARemote working directory: =
/export/home/huysego=0D=0Asftp> get b=2Etxt=0D=0ACouldn't stat remote file:=
No such file or directory File=0D=0A"/export/home/huysego/b=2Etxt" not fou=
nd=2E=0D=0Asftp> ls -l=0D=0Adrwxr-xr-x 0 9108 10 512 Apr =
21 11:15 =2E=0D=0Adrwxr-xr-x 0 0 1 512 Apr 3 14:23 =
=2E=2E=0D=0A-rw------- 0 9108 10 2387 Apr 21 11:18 =2Ebash=
_history=0D=0A-rw------- 0 9108 10 240 Mar 28 16:19 =2Esh=
_history=0D=0Adrwx------ 0 9108 10 512 Mar 22 17:11 =2Ess=
h=0D=0Adrwx------ 0 9108 10 512 Mar 22 16:00 =2Essh2=0D=
=0A-rwxrwxrwx 0 9108 10 26 Mar 29 15:22 a=2Esftp=0D=0A-r=
wxrwxrwx 0 9108 10 0 Mar 28 15:28 a=2Etxt=0D=0A-rw-----=
-- 0 9108 10 1021424 Mar 22 17:07 core=0D=0Asftp> =0D=0Abash-=
2=2E05$ echo $?=0D=0A0=0D=0A*********************************** ************=
*************************=0D=0A******************* *************************=
**************************=0D=0AAs you can see in this example, sftp gives =
a rc =3D 0=2E If you try the same=0D=0Aon RedHat, you will receive a rc not=
equal to 0=2E=0D=0A=0D=0ADoes anybody have a solution to this problem ? Or=
another SSH client we=0D=0Acan install in Solaris ?=2E=0D=0A=0D=0AThanks=
=2E=0D=0ARegards=2E=0D=0APierre=2E=0D=0A=0D=0A=0D= 0A=0D=0A=0D=0A=0D=0A=0D=
=0A=0D=0A=0D=0A-----------------------------------------=0D=0AVisit our web=
site! http://www=2Enbb=2Ebe=0D=0A=0D=0A"DISCLAIMER: The content of this e-m=
ail message should not be=0D=0Aconstrued as binding on the part of the Nati=
onal Bank of Belgium=0D=0A(NBB) unless otherwise and previously stated=2E T=
he opinions=0D=0Aexpressed in this message are solely those of the author a=
nd do not=0D=0Anecessarily reflect NBB viewpoints, particularly when the co=
ntent=0D=0Aof this message, or part thereof, is private by nature or does n=
ot=0D=0Afall within the professional scope of its author=2E"=0D=0A