Article View: comp.unix.shell
Article #1583Re: Questions about rewriting the History function.
From: Oscar Herrera
Date: Mon, 22 Oct 1990 13:59
Date: Mon, 22 Oct 1990 13:59
9 lines
1012 bytes
1012 bytes
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.
Technical Details
Message-ID:
<8720007@hpdmd48.boi.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!apple!bionet!synoptics!unix!hplabs!hpcc05!hpdmd48!oscarhReferences:
<1990Oct19.170143.7674@polyof.poly.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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