Hi, Don:

Thanks very much for your informations.

do you know who from Oracle I can contact so that they can help to fix this 
ksh93 issue?

Thanks,
Ervin.

-----Original Message-----
From: Don Cragun [mailto:dcra...@sonic.net] 
Sent: 2012年1月6日 16:10
To: Ervin Yan
Cc: Korn Shell 93 integration/migration project discussion; Venkatesha M.G.; 
Steve Sundstrom
Subject: Re: [ksh93-integration-discuss] ksh93 hang with rsh on Solaris 11

Hi Ervin,
I used to work on utilities, libraries, and standards conformance on
Solaris systems before Sun was bought out by Oracle.  The problem you
described sounded like something that I had seen before when a customer
got a restricted shell when they had intended to invoke a remote shell.
If that isn't your problem, I can't help.  I don't work for Oracle and
can't guess any better than you as to when or if your problem will be
diagnosed and fixed in a future Solaris release.

Sorry,
Don

On Jan 5, 2012, at 11:39 PM, Ervin Yan wrote:
> Hi, Don and Ksh team:
>  
> Do you have any updates for this issue?
>  
> Will you fix it in Solaris 11 U1?
>  
> Thanks,
> Ervin.
>  
> -----Original Message-----
> From: Ervin Yan 
> Sent: 2011年12月29日 11:22
> To: Don Cragun
> Cc: Korn Shell 93 integration/migration project discussion; Ervin Yan
> Subject: RE: [ksh93-integration-discuss] ksh93 hang with rsh on Solaris 11
>  
> Hi, Don:
>  
> Thanks for your replies.
>  
> I tried the following commands, they all hang on Solaris 11.
>  
> # echo uname | /usr/bin/rsh <remote_sys> /bin/sh
>  
> # echo uname | /usr/bin/remsh <remote_sys> /bin/sh
>  
> # echo uname | /usr/bin/rsh <remote_sys> /usr/bin/ksh
>  
> # echo uname | /usr/bin/remsh <remote_sys> /usr/bin/ksh
>  
> # echo uname | /usr/bin/rsh <remote_sys> /usr/bin/ksh93
>  
> # echo uname | /usr/bin/remsh <remote_sys> /usr/bin/ksh93
>  
>  
> While the former 4 commands are working well on Solaris 10.
>  
> Thanks,
> Ervin.
>  
> -----Original Message-----
> From: Don Cragun [mailto:dcra...@sonic.net]
> Sent: 2011年12月29日 0:52
> To: Ervin Yan
> Cc: Korn Shell 93 integration/migration project discussion
> Subject: Re: [ksh93-integration-discuss] ksh93 hang with rsh on Solaris 11
>  
> On Dec 28, 2011, at 4:00 AM, 
> ksh93-integration-discuss-requ...@opensolaris.org wrote:
> > Date: Tue, 27 Dec 2011 17:55:47 -0800
> > From: Ervin Yan <ervin_...@symantec.com>
> > To: "ksh93-integration-discuss@opensolaris.org"
> >     <ksh93-integration-discuss@opensolaris.org>
> > Cc: Ervin Yan <ervin_...@symantec.com>
> > Subject: [ksh93-integration-discuss] ksh93 hang with rsh on Solaris 11
> >
> > Hi,
> >
> > Recently, we are working to support Solaris 11 GA for our own products, and 
> > met one issue that rsh could not work well together with the new default 
> > shell 'ksh93' on Solaris 11.
> >
> > According to 
> > http://blogs.oracle.com/OTNGarage/entry/new_shell_in_oracle_solaris,  Korn 
> > Shell 93 (/usr/bin/ksh/ or usr/bin/ksh93) replaced both the Bourne Shell 
> > (/usr/bin/sh or /sbin/sh) and Korn Shell 88 (/usr/bin/ksh) on Solaris 11.
> >
> > In our shell scripts,  we need use '2>&1" to re-direct command results, but 
> > '2>&1' only work for bash/ksh/sh,  and not work for csh/tcsh.   So we have 
> > to run the command with 'echo "$cmd 2>&1" | rsh <remote_sys> /bin/sh' 
> > format when the user defined his default shell as csh/tcsh on <remote_sys> 
> > in '/etc/passwd' file, or when we can not determine the default shell in 
> > initiation stage.
> >
> > But this command 'echo "$cmd 2>&1" | rsh <remote_sys> /bin/sh' hang on 
> > Solaris 11,  while this command works well on all other platforms, like 
> > Linux, AIX, HPUX, and Solaris 9/10.
> >
> > ssh , or rsh with /usr/bin/bash,  or rsh with /usr/sunos/bin/sh are working 
> > well.
> >
> > For example,
> >
> > 1). 'echo uname | rsh <remote_sys> /bin/sh' hang on Solaris 11.
> > 2). 'echo uname | rsh <remote_sys> /usr/sunos/bin/sh' works well on Solaris 
> > 11.
> > 3). 'echo uname | rsh <remote_sys> /usr/bin/bash' works well on Solaris 11.
> > 4). 'echo uname | ssh <remote_sys> /bin/sh' works well on Solaris 11.
> >
> > So could you help to confirm whether it is a bug for ksh93?
>  
> Is $PATH set up so that rsh invokes the BSD rsh (remote shell), or the
> Bourne or Korn rsh (restricted shell)?  Have you tried using an absolute
> path the the rsh you want or using remsh (a link to the BSD rsh) instead
> of using rsh?
>  
> It would be nice if the Oracle Solaris 11 rsh and ksh man pages mentioned
> this issue explicitly.
>  
> - Don
>  
> >
> > Thanks,
> > Ervin.
_______________________________________________
ksh93-integration-discuss mailing list
ksh93-integration-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss

Reply via email to