Operating System - HP-UX
1837960 Members
2334 Online
110124 Solutions
New Discussion

Re: Users want to run ksh93 on HPUX 11.23 server

 
SOLVED
Go to solution
Paul Maglinger
Regular Advisor

Users want to run ksh93 on HPUX 11.23 server

We have a new HPUX 11.23 server that has the OEM ksh88 that came with the installation. We have some older systems that are running ksh93. I believe that some of the problems we see on the older systems may be caused by this ksh93, so I'm pretty bull-headed about running it on this new system. One of the things the users are telling me is that ksh93 allows them to recall their last commands using up and down arrows among other "whistles and bells". Is there a way to configure the existing ksh to do the same things as ksh93 without having to run ksh93? How have some of you other guys handled this?
11 REPLIES 11
Hasan  Atasoy
Honored Contributor

Re: Users want to run ksh93 on HPUX 11.23 server

Paul Maglinger
Regular Advisor

Re: Users want to run ksh93 on HPUX 11.23 server

Is there an HPUX OEM shell that matches or comes close to ksh93? I hate to put some third-party shell on this server, especially one this old.

Re: Users want to run ksh93 on HPUX 11.23 server

dtksh used to be ksh93 compliant - can't remember whether its still on 11iv2.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Paul Maglinger
Regular Advisor

Re: Users want to run ksh93 on HPUX 11.23 server

How do I set that up? I don't see that option on the pull-down when I set up new users in SAM.
James R. Ferguson
Acclaimed Contributor

Re: Users want to run ksh93 on HPUX 11.23 server

Hi Paul:

The ksh93 shell is available on 11.23 (as in prior HP-UX releases) as:

# /usr/dt/bin/dtksh

Regards!

...JRF...
Paul Maglinger
Regular Advisor

Re: Users want to run ksh93 on HPUX 11.23 server

When I set up a new user using SAM, you are given the option to select the shell that the user will use as default. Of the shells that are listed, I do not see dtksh as any of the options. I see the following options, all of which are under /usr/bin :
sh, csh, ksh, rsh, rksh, and keysh.
blah2blah
Frequent Advisor

Re: Users want to run ksh93 on HPUX 11.23 server

if it isn't in /etc/shells, add it
Paul Maglinger
Regular Advisor

Re: Users want to run ksh93 on HPUX 11.23 server

/etc/shells does not exist. I tried creating it, but the additional option doesn't show up in the pull-down menu. I don't see this file on my other HPUX machine as well, although it does appear on the Tru64 machines.
Dennis Handly
Acclaimed Contributor

Re: Users want to run ksh93 on HPUX 11.23 server

>We have a new HP-UX 11.23 server that has the OEM ksh88 that came with the installation.

What OEM ksh88? HP-UX has its own Posix shell, sh and ksh.

You should really use vi editing esc-K or emacs control-P. But here are some threads about using the cursor keys:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1144927
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=616828
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1057981

>I do not see dtksh as any of the options.

Probably since it isn't installed by default? Part of CDE.
If it exists, can you try typing it in?

>/etc/shells does not exist. I tried creating it, but the additional option doesn't show up in the pull-down menu.

If you create /etc/shells, you'll need to add the default shells too. (There probably is no connection between shells and the pulldown menu?)
Paul Maglinger
Regular Advisor

Re: Users want to run ksh93 on HPUX 11.23 server

> You should really use vi editing esc-K or emacs control-P.

Not likely to happen. I'd have a better chance of getting a 5-pack-a-day smoker to quit puffing that to get these guys to give up their cursor keys.

> Probably since it isn't installed by default?

It's in the directory that it's supposed to be in. /usr/dt/bin/dtksh

> If you create /etc/shells, you'll need to add the default shells too. (There probably is no connection between shells and the pulldown menu?)

I tried adding the default shells too, and no joy. So where are the shells listed that ARE contained on the pulldown?
Pete Randall
Outstanding Contributor
Solution

Re: Users want to run ksh93 on HPUX 11.23 server

The file /etc/shells does not control which shells you see in SAM's pull down, it controls which shells are valid to even be run on the system.

The pull down available in SAM is probably internal to SAM and not changeable. You can simply type the desired shell in instead. Or you can create a template to use when adding users (under > Accounts for users and groups > Actions > User Templates > Create). In your template, you can specify which shell the user should have. Then, when creating a user, you first select your template and SAM will use the template to automatically fill in whatever you have specified.


Pete

Pete