HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: FPATH and Linux
Operating System - Linux
1830233
Members
1745
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-02-2005 04:15 AM
02-02-2005 04:15 AM
FPATH and Linux
On HP-UX servers, I set my FPATH, type the name of a function file in that FPATH and all the functions in the file are loaded into my shell ready to make my life easier.
How do I achieve the same thing on Linux? If it makes a difference, I'm using RedHat, various versions.
Cheers
Dave
How do I achieve the same thing on Linux? If it makes a difference, I'm using RedHat, various versions.
Cheers
Dave
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 04:47 AM
02-02-2005 04:47 AM
Re: FPATH and Linux
I don't set FPATH on HP-UX. I set up my function library in /usr/contrib/bin and make sure its on the PATH.
That will probably work for you.
You can try setting the variable and setting it up line HP-UX. Its a posix shell, so it might work exactly the same way.
Set it in .profile or /etc/profile
And, I would not mind seeing how you do it in HP-UX. Sounds like a neat sysadmin enhancement.
SEP
That will probably work for you.
You can try setting the variable and setting it up line HP-UX. Its a posix shell, so it might work exactly the same way.
Set it in .profile or /etc/profile
And, I would not mind seeing how you do it in HP-UX. Sounds like a neat sysadmin enhancement.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 10:30 PM
02-03-2005 10:30 PM
Re: FPATH and Linux
Steven,
It turns out the solution on Linux is just as on HP-UX. It was failing consistently when I tried before, but works fine when I try today. My shell must have been broken, and it never occurred to me to start a new one.
My approach is nothing special:
export FPATH=/home/daveb
Create a file called funcs in /home/daveb:
function funcs
{
sleep 0
}
function dothis
{
commands
}
function dothat
{
commands
}
etc
Then when I start a new shell, I just type funcs and I can use all these functions from the command line. (I could stick this in a startup file, but we share IDs here, and other people would get confused if they accidentally invoked one of my functions.)
Cheers
Dave
It turns out the solution on Linux is just as on HP-UX. It was failing consistently when I tried before, but works fine when I try today. My shell must have been broken, and it never occurred to me to start a new one.
My approach is nothing special:
export FPATH=/home/daveb
Create a file called funcs in /home/daveb:
function funcs
{
sleep 0
}
function dothis
{
commands
}
function dothat
{
commands
}
etc
Then when I start a new shell, I just type funcs and I can use all these functions from the command line. (I could stick this in a startup file, but we share IDs here, and other people would get confused if they accidentally invoked one of my functions.)
Cheers
Dave
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP