# US 8,578,331 B2 · Command line output redirection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,331 B2
- Document ID: US8578331B2
- Status: Granted
- Kind: B2
- Application number: 13/111,768
- Filed: 2011-05-19
- Published: 2011-09-15
- Granted: 2013-11-05
- Earliest claimed: 1999-11-26
- Assignees: Micron Technology, Inc.
- Applicants: James McKeeth
- Inventors: James McKeeth
- Web page: https://patentgrep.com/patent/US8578331B2

## CPC

- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 9/54: Interprogram communication
- G06F 12/023: {Free address space management}
- G06F 2212/251: Local memory within processor subsystem
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment the invention provides a method to provide command line utility output to an application without the need of temporary files. The method includes receiving an identifier, receiving output from a command line utility, and storing the command line utility output in a system storage at a location identified by the identifier. In one illustrative embodiment, command line utility output is stored in a system registry database. In another illustrative embodiment, command line utility output is stored in a shared system memory. The method may be stored in any media that is readable and executable by a computer system.

## Claims

### Claim 1

A method comprising:
receiving, in a computer, a call invoked by an application unable to receive command line utility outputs via a command line interface, to execute at least a command line utility, the application providing an identifier in the call, wherein the identifier comprises a system registry storage location accessible by the application, and wherein the command line utility is a utility executable from a command line prompt;
receiving output from the command line utility;
storing the output received from the command line utility in the system registry storage location identified by the identifier; and
providing, by the computer, the output of the command line utility to the application from the system registry storage location identified by the identifier.

### Claim 2 (depends on 1)

The method of claim 1 wherein the identifier identifies one or more entries in a system registry database.

### Claim 3 (depends on 2)

The method of claim 2 wherein providing the identifier comprises providing a root key identifier.

### Claim 4 (depends on 3)

The method of claim 3 wherein providing the root key identifier comprises providing a sub-key identifier.

### Claim 5 (depends on 1)

The method of claim 1 wherein the system registry storage location comprises one of: an operating system registry database, a registry maintained by an operating system of the computer, and a shared memory maintained by an operating system of the computer.

### Claim 6 (depends on 1)

The method of claim 1 wherein providing the identifier indicates a system registry database.

### Claim 7 (depends on 1)

The method of claim 1 wherein receiving of the output from the command line utility comprises receiving output directly from the command line output utility.

### Claim 8 (depends on 1)

The method of claim 1 wherein receiving of the output from the command line utility comprises receiving output from the command line output utility through a subsequent command line output routine.

### Claim 9 (depends on 8)

The method of claim 8 wherein the identifier identifies a parameter for the subsequent command line output routine.

### Claim 10 (depends on 8)

The method of claim 8 wherein the identifier identifies one of: the subsequent command line output routine and the command line utility.

### Claim 11 (depends on 10)

The method of claim 10 wherein storing of the output comprises associating each line of the output from the command line utility with a line identifier in a system registry database.

### Claim 12 (depends on 11)

The method of claim 11 further comprising setting the line identifier to a value corresponding to a position of that line in the output from the command line utility.

### Claim 13 (depends on 11)

The method of claim 11 further comprising setting a default value of the identifier provided in the call to equal the total number of command utility output lines stored in the system registry database.

### Claim 14 (depends on 1)

The method of claim 1 wherein the command line utility comprises a first command line utility, and wherein the call invoked by the application requests to pipe output of a second command line utility to the first command line utility, wherein the output stored in the system registry storage location comprises output of the second command line utility.

### Claim 15

A program storage device, readable by a computer, storing instructions configured to instruct the computer to:
receive, in the computer, from an application without a command line interface that may receive command utility outputs, a call invoked to execute at least a command line utility, the application providing at least one identifier in the call, wherein the identifier comprises a system registry storage location, and wherein the command line utility is a utility executable from a command line prompt;
receive output from the command line utility;
store the output received from the command line utility in the system registry storage location identified by the at least one identifier; and
provide, by the computer, the output of the command line utility to the application from the system registry storage location identified by the at least one identifier.

### Claim 16 (depends on 15)

The program storage device of claim 15 wherein the instructions are configured to instruct the computer to receive one or more lines of the output from the command line utility, and to store each of said one or more lines of the output in a system registry database.

### Claim 17 (depends on 16)

The program storage device of claim 16 wherein the instructions are further configured to instruct the computer to associate a unique identifier with each of the one or more lines of the output stored in the system registry database.

### Claim 18 (depends on 16)

The program storage device of claim 16 wherein the instructions are further configured to instruct the computer to set a value associated with the received identifier equal to the number of lines of the output stored in the system registry database.

### Claim 19 (depends on 15)

The program storage device of claim 15 wherein the command line utility comprises a first command line utility and the call is invoked by the application to pipe output of a second command line utility to the first command line utility, and wherein the output stored in the system registry storage location comprises output of the second command line utility.

### Claim 20 (depends on 19)

The program storage device of claim 19 wherein the identifier identifies the first command line utility.

### Claim 21 (depends on 15)

The program storage device of claim 15 wherein the system registry storage location is in one of: a system registry database, a registry maintained by an operating system of the computer, or a shared system memory maintained by the operating system of the computer.

### Claim 22

A computer system comprising:
a processor; and
memory storing instructions including an operation system and a command line utility, wherein the command line utility is a utility executable by the processor under control of the operation system from a command line prompt,
wherein when an application without a command line interface that may receive command utility outputs that is executable on the processor invokes a call to the operation system to execute at least the command line utility, the application provides at least one identifier in the call identifying a system registry location accessible by the application, and
the instructions cause the system registry storage location identified by the at least one identifier to store an output of the command line utility, enabling the application to retrieve the output of command line utility from the system registry storage location identified by the at least one identifier.

### Claim 23 (depends on 22)

The computer system of claim 22 wherein the at least one identifier identifies the command line utility.
