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