Computing.Net > Forums > Unix > history file for each login session

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

history file for each login session

Reply to Message Icon

Name: CarlosP
Date: September 14, 2004 at 11:43:09 Pacific
OS: aix 5
CPU/Ram: 9999
Comment:

I have read in the "Learning the Korn Shell" book about history file for each login session. In the book it said to put "HISTFILE=~/.hist$$" in your .profile to create a history session for users that run more than one login session at a time.

it set the HISTFILE in the env variables, but does not create the .hist$$ under the user /home/user.

Do I need to set this somewhere else???



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: September 14, 2004 at 17:10:08 Pacific
Reply:

Carlos:

Have you tried exporting the HISTFILE variable:

HISTFILE=~/.hist$$
export HISTFILE

Regards,

Nails


0

Response Number 2
Name: CasperTdot
Date: September 15, 2004 at 06:22:02 Pacific
Reply:

Yes I did. Anymore sugguestios....


0

Response Number 3
Name: aleemsubhedar
Date: September 16, 2004 at 14:38:28 Pacific
Reply:

hello Carlos,

Just worth checking..
Please check if you are getting .hist<somenumber> ??

try a "ls -al *hist*" under home directory.

Rgds,
Aleem


0

Response Number 4
Name: CasperTdot
Date: September 17, 2004 at 06:10:41 Pacific
Reply:

Here is the problem, the .hist<somenumber> does not get created on the first shell session. When i open serveral shells with the same user id it works the ways it should.

Any suggestion?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: history file for each login session

UNIX Script Prob. www.computing.net/answers/unix/unix-script-prob/2039.html

Read input file for deleting images. www.computing.net/answers/unix/read-input-file-for-deleting-images/2862.html

awk in Unix Bourne Shell www.computing.net/answers/unix/awk-in-unix-bourne-shell/4928.html