|
. ./.profile
I have a similar problem, mine is AIX w/ksh.
I want to be able to 'restart' my login without have to type 'login' to exit and relogin completely to get my .profile to be invoked again.
If I typed, from my $HOME directory, ". ./.profile" (without the quotes of course), the environment variables I set all take effect. However, if I put this command ". ./.profile" in a file call "restart". It doesn't seem to do anything...I am still pointing to the database I first logged in with and the old variables still exist...Here's my restart script..simple enuff:
restart:
#!/bin/ksh
. ./.profile
.profile:
. $HOME/.promptuser
.promptuser:
export variable1...
export variable2...
etc.
Please advise how I can get the "restart" script to export new sets of variables again..right now, it executes and I get the prompt again to pick a database, but regardless of what choice I pick, it still points me back to whatever choice I picked when I first logged in to the server.
Okay, so I am too lazy to type . ./.profile or . $HOME/.profile from the $HOME directory... and want to be able to switch databases on the fly from anywhere that's why I am asking...thanx. It works but it doesn't work.
Gianni
|