The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: history in ksh
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 11-08-2001
Rado1x Rado1x is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 35
Another approach is:

HISTFILE=$HOME/.histfile.$$

which create unique histfile for each login shell. In this case, problem is that user don't see his history from previous log-in and you have to delete this files during log-out process.

If you use csh [and clones], put

rm $HISTFILE in your .logout

If you use sh [and clones], try something similar in your .profile

trap 'rm $HISTFILE; exit' NULL