For When You Can't Have The Real Thing
[ start | index | login ]
start > ksh history

ksh history

Created by dave. Last edited by dave, 21 years and 35 days ago. Viewed 4,088 times. #1
[edit] [rdf]
labels
attachments

Unique KSH history

Useful if you want each of your concurrent login sessions to have their own unique shell history. Very useful if different people are logged in as the same user but doing different things (ie root user on a central system).

HISTFILE=$HOME/.ksh_hist`tty`
[ -d `dirname $HISTFILE` ] || mkdir -p `dirname $HISTFILE`

Works on Solaris' ksh and RedHat 8.0's pdksh

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt