- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Alias not working sometimes
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
тАО10-27-2003 03:15 AM
тАО10-27-2003 03:15 AM
I use aliases to make my work easier. Sometimes I find that the aliases do not work. Any idea why this happens? Thanks for all responses.
Regards,
Suren Selva
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 03:20 AM
тАО10-27-2003 03:20 AM
Re: Alias not working sometimes
Post your alias so we can help diagnose it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 03:32 AM
тАО10-27-2003 03:32 AM
Re: Alias not working sometimes
When you are saying sometimes, can you pinpoint those occasions. Is it during a plain tty session or a CDE session?
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 03:32 AM
тАО10-27-2003 03:32 AM
SolutionWhat I mean is that under certain circumstances the aliases are probably not getting loaded.
The places to look include /etc/profile and .profile for the user.
When it works try this:
env > /tmp/good.txt
When it doesn't
env > /tmp/bad.txt
then diff /tmp/good.txt /tmp/bad.txt
That will identify the issue and let you solve it.
SEP
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
тАО10-27-2003 04:50 AM
тАО10-27-2003 04:50 AM
Re: Alias not working sometimes
A 'normal' telnet connection will run .profile, but remsh will not, nor will an VUE or CDE login using one of the desktop terminal icons. You'll need to add a *loginShell:true to your $HOME/.Xdefaults file to get a true login.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 06:29 AM
тАО10-27-2003 06:29 AM
Re: Alias not working sometimes
Can your put a line in /etc/profile to reference $USER/.profile?
Seems like that would work in the of non-telnet logins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 08:14 AM
тАО10-27-2003 08:14 AM
Re: Alias not working sometimes
lp='lp -oc -dprinter'
-Suren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 10:13 AM
тАО10-27-2003 10:13 AM
Re: Alias not working sometimes
In a basic HP-UX class, we were advised to place the alias in our corresponding shell .xxxrc file.
i.e. .kshrc or .cshrc.
Having done that, I have not seen the problem in our environment.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 12:54 PM
тАО10-27-2003 12:54 PM
Re: Alias not working sometimes
- telnet from the client contacts telnetd in HP-UX
- login/password are requested and one authenticated, the user shell is started as a login process. For Bourne, Korn, POSIX (and even Bash), /etc/profile is then sourced
- Once /etc/profile is sourced, the user's local profile is run. Now it gets complicated: Bourne, Korn and POSIX shells will read .profile, Bash will read .bash_profile, .bash_login, and ~/.profile in that order if they are readable.
SO it is not necessary to add .profile to /etc/profile at all. The problem occurs with the obtuse defaults for CDE and VUE. In this case, users often use the desktop icons for terminals (xterm, dtterm and hpterm) and unfortunately, the default is to start the window and run the shell without the 'loginShell' option. So neither /etc/profile nor .profile will lbe run at all. To fix this bizarre (by Unix standards) behavior, you need to tell the terminal emulators to perform a 'normal' login. On the machine acting as a CDE or VUE server, run this command:
echo "*loginShell: true" >> $HOME/.Xdefaults
and now each terminal will actually run /etc/profile then .profile. Verify this with simple echo statements in both files.
Bill Hassell, sysadmin