HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- alias again
Operating System - HP-UX
1834018
Members
2510
Online
110063
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
Go to solution
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
05-21-2008 10:45 AM
05-21-2008 10:45 AM
i have setup alias for a command. it works in comand line not script.could u please advice ....what could be the prob
thanks so much
thanks so much
Learning ...
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2008 10:52 AM
05-21-2008 10:52 AM
Solution
the answers still apply:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1233036
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1233036
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2008 11:04 AM
05-21-2008 11:04 AM
Re: alias again
Hi Navin:
As Torsten notes, re-read your original post.
Be sure that you are sourcing (reading; not executing) your script. This works:
# cat ./myalias
#!/usr/bin/sh
alias say='echo'
# . ./myalias
# say hello
hello
Notice the dot; some whitespace; and then the name of the file to be sourced (read). The idea is not to create a new environment.
Regards!
...JRF...
As Torsten notes, re-read your original post.
Be sure that you are sourcing (reading; not executing) your script. This works:
# cat ./myalias
#!/usr/bin/sh
alias say='echo'
# . ./myalias
# say hello
hello
Notice the dot; some whitespace; and then the name of the file to be sourced (read). The idea is not to create a new environment.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2008 11:21 PM
05-21-2008 11:21 PM
Re: alias again
You should consider not using aliases in scripts. Or if you do, define it in the same file.
I have defined ENV so that my .kshrc file is not available in my scripts, so they run faster.
I have defined ENV so that my .kshrc file is not available in my scripts, so they run faster.
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