1828471 Members
2878 Online
109978 Solutions
New Discussion

Shell usage

 
SOLVED
Go to solution
Ngoh Chean Siung
Super Advisor

Shell usage

Hi,

Any difference of using korn, bourne & restricted korn shell? How to justify which shell to be used and under what condition?

For restricted korn shell, what are the things that user cannot do? What I know is can use the command "cd" and "chown". Anything else?

regards.
5 REPLIES 5
Simon Hargrave
Honored Contributor

Re: Shell usage

As a general rule, on HPUX, the POSIX shell is the shell of choice unless you have a specific reason to use another, for example scripts using ksh-specific peculiarities.

The restrictions of rsh, from the man page are to disallow: -

+ Changing directory (see the cd special command and cd(1))
+ Setting the value of SHELL, ENV, or PATH
+ Specifying path or command names containing /
+ Redirecting output (>, >|, <>, and >>)
Muthukumar_5
Honored Contributor

Re: Shell usage

Hai,

Check the difference between the bourne ans ksh at,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611474

If the ksh with -r option is used then it is called restricted shell.


More restrictions are,
+ Changing directory (see cd(1))
+ Setting the value of SHELL, ENV, or PATH
+ Specifying path or command names containing /
+ Redirecting output (>, >|, <>, and >>)

Resricted editor red is available.

See the ksh man page for "rksh Only" part.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Jose Mosquera
Honored Contributor

Re: Shell usage

Hi,

Simple but useful:
#man sh

Rgds.
R. Sri Ram Kishore_1
Respected Contributor
Solution

Re: Shell usage

Hi,

Check out this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=624818

Also, take a look at these links for a very detailed comparison of features of all the shells:
a) http://www.cee.odu.edu/uclhd/uclhd_unix_different_shell.php#shell_feature
b) http://bcebhagalpur.net/tutorials/shell/shell.htm
c) http://cbbrowne.com/info/unixshells.html

HTH.

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."