Command line output redirection
AssigneeMircon Technology, Inc.
InventorJames McKeeth
Life of this patent
Estimating the term…
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.
Claims20
A computer-implemented method comprising:
- receiving, in a routine running in a computer, a location identifier configured to selectively identify between a clipboard storage location and a registry storage location, the location identifier comprising:
- a first value configured to identify the clipboard storage location, wherein the clipboard storage location references a clipboard maintained by an operating system of the computer when selectively identifying the clipboard storage location;
- and
- a second value configured to identify the registry storage location, wherein the registry storage location references a registry maintained by an operating system of the computer when selectively identifying the registry storage location;
- receiving, in the routine running in the computer, output from a command line utility via a piping function of an operating system of the computer, wherein the command line utility is a utility executable in the operating system from a command line prompt;
- and
- storing, by the routine running in the computer, the output received from the command line utility in the clipboard maintained by the operating system based upon the location identifier comprising the first value;
- or
- storing, by the routine running in the computer, the output received from the command line utility in the registry based upon the location identifier comprising the second value.
A non-transitory program storage device, readable by a computer, for storing instructions configured to instruct the computer to:
- receive a request to execute, on the computer, a set of commands connected via a piping function of an operating system of the computer, the set of commands including a first command line utility and a second command line utility, wherein each of the first command line utility and the second command line utility is executable in the operating system from a command line prompt, wherein the request comprises a location identifier configured to selectively identify between a clipboard storage location and a registry storage location, the location identifier comprising:
- a first value configured to identify the clipboard storage location, wherein the clipboard storage location references a clipboard maintained by an operating system of the computer when selectively identifying the clipboard storage location;
- and
- a second value configured to identify the registry storage location, wherein the registry storage location references a registry maintained by an operating system of the computer when selectively identifying the registry storage location;
- execute, on the computer, the set of commands including the first command line utility and the second command line utility;
- receive output from the first command line utility and provide the output as input to the second command line utility, using the piping function of the operating system of the computer;
- receive the output from the second command line utility;
- and
- store the output received via the second command line utility in the clipboard maintained on the computer by the operating system based upon the location identifier comprising the first value;
- or
- store the output received from the second command line utility in the registry based upon the location identifier comprising the second value.
A computer, comprising:
- a system bus;
- at least one processor coupled to the system bus;
- and
- at least one storage device coupled to the system bus, the at least one storage device storing instructions including an operating system and a first command line utility, the operating system configured to:
- identify a storage location via a location identifier configured to selectively identify between a clipboard storage location and a registry storage location, the location identifier comprising:
- a first value configured to identify the clipboard storage location, wherein the clipboard storage location references a clipboard maintained by an operating system of the computer when selectively identifying the clipboard storage location;
- and
- a second value configured to identify the registry storage location, wherein the registry storage location references a registry maintained by an operating system of the computer when selectively identifying the registry storage location;
- instruct the at least one processor to:
- allocate a portion of the at least one storage device as a clipboard of the operating system based upon the location identifier comprising the first value, or
- allocate a portion of a registry based upon the location identifier comprising the second value;
- the first command line utility configured to:
- receive input via a piping function of the operating system;
- and
- store the input received via the piping function of the operating system in the clipboard of the operating system based upon the location identifier comprising the first value;
- or
- store the input received via the piping function of the operating system in the registry based upon the location identifier comprising the second value.
Dependencies are inferred from the claim text.