- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell usage
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 10:32 PM
07-05-2004 10:32 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 10:40 PM
07-05-2004 10:40 PM
Re: Shell usage
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 >>)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 10:43 PM
07-05-2004 10:43 PM
Re: Shell usage
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 11:12 PM
07-05-2004 11:12 PM
Re: Shell usage
See the link below, it helps you choose the shell depending on it's capability:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90046/B2355-90046_top.html&con=/hpux/onlinedocs/B2355-90046/00/00/5-con.html&toc=/hpux/onlinedocs/B2355-90046/00/00/5-toc.html&searchterms=shells&queryid=20040706-051026
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90046/B2355-90046_top.html&con=/hpux/onlinedocs/B2355-90046/00/00/37-con.html&toc=/hpux/onlinedocs/B2355-90046/00/00/37-toc.html&searchterms=shells&queryid=20040706-051026
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 11:21 PM
07-05-2004 11:21 PM
Re: Shell usage
Simple but useful:
#man sh
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 01:18 AM
07-06-2004 01:18 AM
SolutionCheck 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