- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Migrating from bourne to posix shell
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
06-29-2006 05:50 AM
06-29-2006 05:50 AM
Can someone please explain me the checklist, I need to have to migrate scripts of bourne shell of TRU64 to POSIX shell of HP-UX. We are in the process of migrating all our existing script in TRU64 to HP-UX 11.23.
Thanks,
Srikanth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 05:55 AM
06-29-2006 05:55 AM
Re: Migrating from bourne to posix shell
IMHO I believe there is nothing to do...(except to check the correct path...)
the main difference I see between the two is posix shell has added functionalities...
The other way round is a different story
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 06:10 AM
06-29-2006 06:10 AM
Re: Migrating from bourne to posix shell
This should be straightfoward. As Victor, noted, be sure to specify a ahe-bang (#!) interpreter. Use:
#!/usr/bin/sh
...for all users other than root; and *be sure for root* to use:
#!/sbin/sh
The version in '/usr/bin' uses dynamically linked libraries which are not available in single-user mode nor during the early start-up stages. However, its memory footprint is smaller than the staticlly linked libraries used in '/sbin/sh'. Hence, don't ever try and use anything other than 'sbin/sh' as the default shell for root.
Don't use '#!/bin/sh' either as the interpreter. '/bin' is an old transition link (to '/usr/bin' )and is deprecated. I believe it will vanish in 11.31 anyway.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 06:32 AM
06-29-2006 06:32 AM
SolutionHere's a nice page on the differences among various shells:
http://www.softlab.ntua.gr/facilities/documentation/unix/shelldiff.html
The table about halfway down is especially enlightening. While the POSIX shell is not given, 'sh-posix' and 'ksh' are nearly identical, so compare 'sh' to 'ksh'.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 08:21 AM
06-29-2006 08:21 AM
Re: Migrating from bourne to posix shell
first thing is that the "first line"...ie, the #!/usr/bin/sh change.
the second thing is that:
what commands the script uses.
lot of TRU64 commands differ from HPUX commands.
for example, uname -p in TRU64 equal to uname -m or model in HPUX.
see attachment for more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 09:41 PM
06-29-2006 09:41 PM
Re: Migrating from bourne to posix shell
Thanks for your response. I am not able to assign points. Can you please tell me what should be done to assign points to yourself.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 10:49 PM
06-29-2006 10:49 PM
Re: Migrating from bourne to posix shell
u can assign the points in the same way how u assigned to the previous threads.
u will see a my name in and a line:
"Jun 29, 2006 20:21:05 GMT Unassigned "
the unassigned is a "drop down list". use that to assign points.
by the by, assign points for telling how to assign points. hey just for fun..
have fun..
Invent|Sekar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 11:32 PM
06-29-2006 11:32 PM
Re: Migrating from bourne to posix shell
Still I couldnt get that list box of unassigned points. The problem is I already assigned points yesterday, after that I received your valuable response. When I click sort by points..it only sorts with respect to points and doesnt display the list box with unassigned values.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 11:56 PM
06-29-2006 11:56 PM