- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: GNU Coreutil HP-UX how to
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
Discussions
Discussions
Forums
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
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
тАО03-23-2009 08:12 PM
тАО03-23-2009 08:12 PM
I have downloaded and installed coreutil depot form http://hpux.connect.org.uk/hppd/hpux/Gnu/coreutils-7.1/ and all it dependency
installation is sucessfull and the path it got installed is /usr/local/coreutil/bin and man page is /usr/loca/coreutil/share/man/man1
Now my questions are
1.How do i set path for coreutil commands?
May be by export PATH=$PATH:/usr/local/coreutil/bin
2.If we set path does Gnu coreutil and posix commands inside /usr/bin will conflict?
3.what are advantages,limitations and disadvantages of Gnu coreutil and POSIX commands?
4.Whether GNU Coreutil create any issues in future?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 09:05 PM
тАО03-23-2009 09:05 PM
Re: GNU Coreutil HP-UX how to
>1. How do i set path for coreutil commands?
>export PATH=$PATH:/usr/local/coreutil/bin
Yes.
>2. If we set path does Gnu coreutil and posix commands inside /usr/bin will conflict?
Yes, if they have the same names. You may want to rename each GNU command to start with "g".
>3. what are advantages, limitations and disadvantages of Gnu coreutil and POSIX commands?
You would have to compare each command.
One limitation is that you would have to install the GNU tools on each system.
Of course the HP-UX command have limitations in options, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 11:49 PM
тАО03-23-2009 11:49 PM
Re: GNU Coreutil HP-UX how to
But how to export manpath of coreutil?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2009 08:50 AM
тАО03-24-2009 08:50 AM
Re: GNU Coreutil HP-UX how to
Either export MANPATH or use "man -M path".
export MANPATH=$MANPATH:/usr/loca/coreutil/share/man
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2009 08:35 PM
тАО03-24-2009 08:35 PM
Re: GNU Coreutil HP-UX how to
Thanks for your reply
What would happen if i replace POSIX commands with coreutil commands that means the df,time,sort,unique?
what will be the impact?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2009 09:00 PM
тАО03-24-2009 09:00 PM
Re: GNU Coreutil HP-UX how to
What do you mean by "replace"?
> what will be the impact?
I can't be certain, but it's just possible
that this would depend on how you (or others)
use these programs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2009 09:57 PM
тАО03-24-2009 09:57 PM
Solution(Hope you don't mean change the files in /usr/bin/? That would be bad.)
It depends. If the options are the same, just less limitations, it would work. You just need to clearly document that you depend on GNU.
Similarly if different options.
Having the commands prefixed with "g" would be a good indication of which you need. (Unless you are porting lots of scripts where they don't already have that "g".)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2009 10:11 AM
тАО03-25-2009 10:11 AM
Re: GNU Coreutil HP-UX how to
Thanks for all of them to clarify my doubts any how i will rename this utilities and use in Shell scripting
Thanks thanks thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2009 10:33 AM
тАО03-25-2009 10:33 AM
Re: GNU Coreutil HP-UX how to
>Thanks for all of them to clarify my doubts any how i will rename this utilities and use in Shell scripting
If I understand your question correctly, you have several options. One is to write your shell scripts in a fashion (something) like this:
#/usr/bin/sh
typeset tar=usr/local/coreutil/bintar
${tar} -tvf file
alias sed=/usr/local/coreutil/bin/sed
echo "how"|sed -e 's/how/thisway/'
...
Otherwise, declare the PATH in your script to simply contain '/usr/local/coreutil/bin' ahead of '/usr/bin'. This is somewhat risky from a security standpoint unless you strictly restrict who can populate the '/usr/local' directory, but is acceptable for individual scripts.
Lastly, as already stated, install the GNU utiliies with a "g" as the prefix so that a reference to 'gtar' is one to GNU's version.
Regards!
...JRF...