Browse Prior Art Database

Enhanced operating system 'history' command

IP.com Disclosure Number: IPCOM000202304D
Publication Date: 2010-Dec-13
Document File: 2 page(s) / 24K

Publishing Venue

The IP.com Prior Art Database

Abstract

Disclosed is a process that works within an operating system to allow developers to view the output of previously issued commands when viewing the command history. The process includes a method to capture the command output to a file as well as display it on the screen.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 01 of 2

Enhanced operating system 'history' command

When developers (aka: users) use the "history" command within a particular operating system, the system presents a list of recent commands that the developer typed at the command line. The problem is that the developer only sees the commands that were entered, not the command outputs at the time they were issued.

Prior art shows one approach to solving the problem which describes a mechanism for command history recall, but it does not address the need to store and recall command output. [1]

The disclosed solution allows developers to view the output of previously issued commands when viewing the command history.

The process and components for the solution include:
1. When a user first logs-on to a system, a program scans the typed text from the command prompt prior to executing the actual command.

2. If the command typed at the prompt matches a predefined list of commands (i.e., those for which the user would like command output monitored), then the program modifies the command string to be piped to a command in a command-line interpreting program, capturing the command output to a file as well as displaying it on the screen.

3. The system writes the executed command along with the date/time of the command to both the history file as well as to the interpreted output file.

4. Running the enhanced 'history' command then shows the user the commands typed as well as an option to view the output of the commands. The history file would have pointers to the relevant interpreted output files.

In a preferred embodiment of the invention:
1. A user defines a file that contains a list of commands that they want monitored: $newshell> cat monitorfile.txt
ps
ls

In this case, the user only wants output monitoring of the ps and ls commands.
2. The user types in some typic...