hi, I am trying to create a script in AIX (5.3 I think), then run it. here's what I have:
[me@compy] /home/me $ vi first.aliases
...
alias cdblah='cd /blah'
alias cdho='cd /ho'
alias ssr='sudo su - random'
~
...end of first.aliases
[me@compy] /home/me $ ./first.aliases
[me@compy] /home/me $ ssr
ksh: ssr: not found.
[me@compy] /home/me $ alias ssr='sudo su - random'
[me@compy] /home/me $ ssr
[YOU HAVE NEW MAIL]
[random@compy] /home/random $[COLOR="\#738fbf"]
---------- Post updated at 03:56 PM ---------- Previous update was at 03:40 PM ----------
. ./first.aliases
is how I have to run the file in order for it to work, but when I switch users, the aliases don't stick.
any idea how to fix that? maybe make it run on start-up for all users? maybe put it in /.profile ?