Unix Technical Forum

hpux 11.00 & alias

This is a discussion on hpux 11.00 & alias within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi, I would like to dine some aliases for all ksh users in my workstation (hpux 11.00). I tried ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 06:13 PM
VP
 
Posts: n/a
Default hpux 11.00 & alias

Hi,
I would like to dine some aliases for all ksh users in my workstation (hpux 11.00).
I tried in /etc/profile but the aliases are not available in user login.
Any ideas for help ?

TIA
Regards,

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 06:13 PM
VP
 
Posts: n/a
Default Re: hpux 11.00 & alias

VP wrote:
> Hi,
> I would like to dine some aliases for all ksh users in my workstation
> (hpux 11.00).
> I tried in /etc/profile but the aliases are not available in user login.
> Any ideas for help ?
>


Typo: s/dine/define/

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 06:14 PM
Doug O'Leary
 
Posts: n/a
Default Re: hpux 11.00 & alias

In article <40f68504$0$32175$a0ced6e1@news.skynet.be>, VP wrote:
>
> Hi,
> I would like to dine some aliases for all ksh users in my workstation
> (hpux 11.00). I tried in /etc/profile but the aliases are not
> available in user login. Any ideas for help ?



There's nothing built in to the HP operating system that would allow
you to do this. That being said, the logic is fairly easy to
incorporate.

Mandrake and Redhat Linuxes use a directory called /etc/profile.d
to store a number of shell scripts which set aliases. The standard
~/.bashrc calls these scripts to set them. You could create a
similar set up by creating the directory, and the aliases file
that you want, then editing the /etc/skel/.kshrc file to source
the directory/files. You would have to script the addition to
~/.kshrc for any pre-existing user accounts.

HTH.

--
--------
Senior UNIX Admin
O'Leary Computer Enterprises
dkoleary@olearycomputers.com (w) 630-904-6098 (c) 630-248-2749
resume: http://www.olearycomputers.com/resume.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com