Questions from a new user (SUMMARY)

Stewart gmark at ihlpf.ATT.COM
Fri Aug 12 12:50:46 AEST 1988


In article <226 at ssbn.WLK.COM>, bill at ssbn.WLK.COM (Bill Kennedy) writes:
> In article <11300001 at osiris.cso.uiuc.edu> hood at osiris.cso.uiuc.edu writes:
> >A very simple solution to the problem of multiple history files is to
> >tack on the process ID to the file name.
> >	HISTFILE=$HOME/.history$$
> >
> >Works for me...
> 
...
> Not to be a nit picker, but how do you get rid of them when you log out?
Yeah, I posted something like that, awhile back and it works fine.
Just add a trap instruction in your login file (.profile) that appends
your particular .historyXXXX to the main .history (assuming
that's what you want to do).  If you're trying to separate the
history files of multiple layers, and not truly separate logins,
the trap instruction will execute when the last layer dies (you log
out).  If you do this for multiple logins, checking the process IDs
doesn't sound THAT inelegant.  This will work for all the .historyXXXXs.
Pretty handy.

				- Mark

				G. Mark Stewart
				ATT_BTL, Naperville, Ill. ix1g266
				ixlpq!gms (312)979-0914



More information about the Comp.sys.att mailing list