Command execution results verification
First Claim
Patent Images
1. A computer program product comprising a computer readable storage medium that is not a transitory signal per se, the computer readable storage medium having computer readable codes stored thereon that cause one or more devices to conduct a method comprising:
- receiving, by a processor, a file including a plurality of commands and an expected result related to the plurality of commands from a command line interface, the command line interface operating in a script mode that allows a user, with a single login to the command line interface, to define a list of commands to be executed in order by the command line interface;
executing the plurality of commands to create one or more processes for performing one or more tasks corresponding to the plurality of commands;
performing the one or more tasks;
generating one or more result codes corresponding to performance of the one or more tasks, the one or more result codes comprising a first indication of successful command execution or a second indication of errors;
determining whether the one or more result codes satisfy the expected result based on the first indication or the second indication in the one or more result codes matching the expected result; and
sending a response to the command line interface in response to determining whether the one or more result codes satisfy the expected result,wherein;
the response includes one of an error message and a success code,the error message comprises an error code indicating one of an unexpected error and an unexpected success in the one or more result codes,determining whether the one or more result codes satisfy the expected results comprises determining whether the first indication of successful command execution or the second indication of errors matches at least a subset of the expected results,sending the response to the command line interface comprises;
sending the success code to the command line interface in response to determining a match, andsending the error code to the command line interface in response to determining a non-match,the error code comprises one of;
a first error indicating an unexpected error in the one or more result codes in response to the subset of expected results including a successful result, anda second error indicating an unexpected success in the one or more result codes in response to the subset of expected results including an error result.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer program product for command result verification is configured to receive a command and an expected result from a command line interface, execute the command, receive one or more result codes resulting from the execution of the command, determine whether the one or more result codes satisfy the expected result, and send a response to the command line interface in response to determining whether the one or more result codes satisfy the expected result.
-
Citations
20 Claims
-
1. A computer program product comprising a computer readable storage medium that is not a transitory signal per se, the computer readable storage medium having computer readable codes stored thereon that cause one or more devices to conduct a method comprising:
-
receiving, by a processor, a file including a plurality of commands and an expected result related to the plurality of commands from a command line interface, the command line interface operating in a script mode that allows a user, with a single login to the command line interface, to define a list of commands to be executed in order by the command line interface; executing the plurality of commands to create one or more processes for performing one or more tasks corresponding to the plurality of commands; performing the one or more tasks; generating one or more result codes corresponding to performance of the one or more tasks, the one or more result codes comprising a first indication of successful command execution or a second indication of errors; determining whether the one or more result codes satisfy the expected result based on the first indication or the second indication in the one or more result codes matching the expected result; and sending a response to the command line interface in response to determining whether the one or more result codes satisfy the expected result, wherein; the response includes one of an error message and a success code, the error message comprises an error code indicating one of an unexpected error and an unexpected success in the one or more result codes, determining whether the one or more result codes satisfy the expected results comprises determining whether the first indication of successful command execution or the second indication of errors matches at least a subset of the expected results, sending the response to the command line interface comprises; sending the success code to the command line interface in response to determining a match, and sending the error code to the command line interface in response to determining a non-match, the error code comprises one of; a first error indicating an unexpected error in the one or more result codes in response to the subset of expected results including a successful result, and a second error indicating an unexpected success in the one or more result codes in response to the subset of expected results including an error result. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method comprising:
-
receiving, by a processor, a file including a plurality of commands and an expected result related to the plurality of commands from a command line interface operating in a script mode that allows a user, with a single login to the command line interface, to define a list of commands to be executed one after another by the command line interface; executing the plurality of commands to create one or more processes for performing one or more tasks corresponding to the plurality of commands; performing the one or more tasks; generating one or more result codes corresponding to performance of the one or more tasks, the one or more result codes comprising a first indication of successful command execution or a second indication of errors; determining whether the one or more result codes satisfy the expected result based on the first indication or the second indication in the one or more result codes matching the expected result; and sending a response to the command line interface in response to determining whether the one or more result codes satisfy the expected result, wherein; the response includes one of an error message and a success code, the error message comprises an error code indicating one of an unexpected error and an unexpected success in the one or more result codes, determining whether the one or more result codes satisfy the expected results comprises determining whether the first indication of successful command execution or the second indication of errors matches at least a subset of the expected results, sending the response to the command line interface comprises; sending the success code to the command line interface in response to determining a match, and sending the error code to the command line interface in response to determining a non-match, the error code comprises one of; a first error indicating an unexpected error in the one or more result codes in response to the subset of expected results including a successful result, and a second error indicating an unexpected success in the one or more result codes in response to the subset of expected results including an error result. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. An apparatus comprising:
-
at least one of a processor, a hardware circuit, and programmable hardware device facilitating a command line interface operating in a script mode that allows a user, with a single login to the command line interface, to define a list of commands to be executed in order by the command line interface; a command module receiving a file including a plurality of commands and an expected result related to the plurality of commands from the command line interface; an operations module executing the plurality of commands to create one or more processes for performing one or more tasks corresponding to the plurality of commands and performing the one or more tasks; a result collection module generating one or more result codes corresponding to performance of the one or more tasks, the one or more result codes comprising a first indication of successful command execution or a second indication of errors; a verification module determining whether the one or more result codes satisfy the expected result based on the first indication of successful command execution or the second indication of errors in the one or more result codes matching the expected result; and a response module sending a response to the command line interface in response to the verification module determining whether the one or more result codes satisfy the expected result, wherein; the response includes one of an error message and a success code, the error message comprises an error code indicating one of an unexpected error and an unexpected success in the one or more result codes, determining whether the one or more result codes satisfy the expected results comprises determining whether the first indication of successful command execution or the second indication of errors matches at least a subset of the expected results, sending the response to the command line interface comprises; sending the success code to the command line interface in response to determining a match, and sending the error code to the command line interface in response to determining a non-match, the error code comprises one of; a first error indicating an unexpected error in the one or more result codes in response to the subset of expected results including a successful result, and a second error indicating an unexpected success in the one or more result codes in response to the subset of expected results including an error result. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification