- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pbrun ksh & .profile
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
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
тАО12-11-2002 10:22 AM
тАО12-11-2002 10:22 AM
I have a couple of aliases in my .profile
when i login[ As regular user] they work fine , then after i do a pbrun ksh[ To get the root access] they get lost.
Can you please give me a suggestion as to how to retain them.
Because it is getting cumbersome to always type in all the aliases in new telnet window every time i logIn
Thank you
Nag
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2002 10:27 AM
тАО12-11-2002 10:27 AM
Re: pbrun ksh & .profile
You might want to specify your aliases in /etc/profile, so they are global for all
users.
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2002 10:28 AM
тАО12-11-2002 10:28 AM
Re: pbrun ksh & .profile
I cannot do that because that will applicable for all the user.
Cheers,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2002 10:32 AM
тАО12-11-2002 10:32 AM
SolutionIf you don't want to put your 'alias'es in a .profile put them in any file of your choice so that you can source them when you want. Assuming the $HOME/myaliases' contained them:
. $HOME/myaliases
Note the dot/space before the filename.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2002 10:37 AM
тАО12-11-2002 10:37 AM
Re: pbrun ksh & .profile
Did you try this:
With name specified without =value, print the specified alias.
With -t, set tracked aliases. The value of a tracked alias is
the full path name corresponding to the given name. The value of
a tracked alias becomes undefined when the value of PATH is
reset, but the alias remains tracked. With name=value omitted,
print the list of tracked aliases in the form name=pathname on
standard output.
With -x, set exported aliases. An exported alias is defined
across subshell environments. With name=value omitted, print the
list of exported aliases in the form name=value on standard
output.
Alias returns true unless a name is given for which no alias has
been defined.
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2002 11:24 AM
тАО12-11-2002 11:24 AM
Re: pbrun ksh & .profile
One of the solutions available is described on :
http://www.dutchworks.nl/htbin/hpsysadmin?h=3&dn=54004&q=%22exported%20alias%22&fh
Have a look. This might be of use for your case.
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2002 12:53 PM
тАО12-11-2002 12:53 PM
Re: pbrun ksh & .profile
.
Earlier i tried it as
sh
Can you please let me know as to why it was not working[ in the case of sh filename]. I was just wondering what was the difference.
thank you again.
Cheers,