Path: utzoo!attcan!uunet!samsung!usc!apple!bionet!synoptics!unix!hplabs!hpcc05!hpdmd48!oscarh From: oscarh@hpdmd48.boi.hp.com (Oscar Herrera) Newsgroups: comp.unix.shell Subject: Re: Questions about rewriting the History function. Message-ID: <8720007@hpdmd48.boi.hp.com> Date: 22 Oct 90 13:59:57 GMT References: <1990Oct19.170143.7674@polyof.poly.edu> Organization: Hewlett Packard - Boise, ID Lines: 9 The main approach I will use will be to store the previous commands in alinked list. My only problem is that I do not know how to intercept the commandonce it has been entered, before it gets executed. Likewise, I do ont know how to execute the command once I have retreived it form the list. i.e. I want to display the command for possible editting and execute it when the carriage return is pressed. Thank You. Mark ---------- If your version of un*x supports the command script, you may extract the history from the script output file. script is a terminal session recorder.