7 replies
by elingy
by jay eckles
First of all, you don't "compile" .profile - it's just a kshell scrpt - it's interpreted.
You don't provide any snippets of your .profile, but here's a line that correctly defines an alias:
alias db="mysql -uusername -p databasename"
Put this line in your .profile, save the file, log out, and log back in. Now you should be able to type "db" instead of the long command to launch the mysql client.
Please tell us what is not working, give us an example alias line from your .profile that isn't working (and an example of one that is working, if any are).
Good luck.
Jay Eckles
www.jayeckles.com
by elingy
by gary_w
what's happening is ".profile" does not get run if you are logging in with the Korn shell. Move your alias settings to ".kshrc" instead.
They work after running ". .profile" because this commnad runs the .profile file in the current shell, thus setting your aliases.
Note also the you are not compiling these file but simply running them in the current shell.
Blue Skies,
Gary
by gary_w
by elingy
by elingy
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending