Command Result Verification in Script Mode

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Command line interfaces in script mode lack the ability to verify whether executed commands produce the expected results, making it difficult to determine successful execution, errors, or unexpected outcomes.

Innovation Solution

A computer program product and method for command result verification that receives a command and an expected result from a command line interface, executes the command, collects result codes, determines if they match the expected outcome, and sends a response to the interface indicating success, errors, or mismatches.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If script mode is used to execute commands efficiently, then execution speed and productivity are improved, but the ability to verify command execution results deteriorates

Engineering Contradiction:
Improvecommand execution efficiencyVSAvoidcommand result verification capability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent implements a feedback mechanism where the command line interface sends expected results to the command processor, which executes commands and compares actual results against expected ones. The system then feeds back verification status (success/failure) to the user, enabling result verification in script mode without sacrificing execution efficiency.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary verification layer between the command execution engine and the user. This intermediary component receives commands, executes them, verifies results against expected outcomes, and presents verified information to the user, thus enabling reliable verification in automated script mode without requiring complex user-side validation scripts.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If complex scripts are used in single shot mode to verify command results, then verification capability is improved, but device complexity and ease of operation deteriorate

Engineering Contradiction:
Improvecommand result verification capabilityVSAvoidscript complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The command line interface performs verification autonomously without requiring user-written scripts. The system automatically sends expected results, executes commands, compares outcomes, and reports verification status, making verification capability inherent to the interface itself rather than requiring external complex scripting.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The command line interface is enhanced to perform multiple functions: it not only executes commands but also inherently verifies results against expected outcomes. This multi-functional approach integrates verification capability directly into the interface, eliminating the need for separate verification scripts and reducing overall system complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Reliability

If result verification is implemented in script mode, then reliability is improved, but device complexity increases

Engineering Contradiction:
Improvecommand execution verificationVSAvoidcommand line interface complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs preliminary action by having the user or system define expected results before command execution. The command line interface then uses these pre-defined expectations to automatically verify actual execution results, implementing verification logic that leverages advance preparation rather than complex runtime analysis.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10169127B2Command execution results verification
Publication Date: 2019.01.01 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10169127B2 patent drawing
  • US10169127B2 patent drawing
  • US10169127B2 patent drawing

AI summary

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.