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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| ||||
| 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 |
| Thread Tools | |
| Display Modes | |
|
|