Method for rapidly executing previous command and replacing named parameters

A technology for executing commands and parameters, applied in the direction of machine execution devices, etc., can solve problems such as time-consuming and unavailable commands, and achieve the effects of speeding up work efficiency, improving humanized experience, and increasing richness

Inactive Publication Date: 2018-01-09
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is time-consuming, and if you make a mistake and enter a wrong character for a certa

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0009] The content of the present invention is described in more detail below:

[0010] The present invention realizes the process of acquisition of the last command, parameter replacement and command execution through an execution file that can input parameters. The specific implementation is as follows:

[0011] 1) Obtain the value of the environment variable $HISTTIMEFORMAT in the shell to determine the output mode of the history command; and then obtain the complete last execution command by intercepting the output of the history command. Convert this execution command to a space as a separator, convert it to an array array, and obtain the length of the array at the same time

[0012] 2) Obtain the two parameter values ​​input by the user, and judge the parameter value input by the user, there are the following four situations:

[0013] If the parameter value is empty, the previous command will be executed directly without further execution

[0014] If the parameter is ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for executing a previous command and replacing named parameters and relates to the technical field of running and maintenance. By adopting the method, the previous executed command can be automatically acquired, and meanwhile two parameters of a named parameter and a replaced parameter input by a user can be acquired; through traversal of the previous executed command, the named parameter is replaced by the replaced parameter, and then the whole command is executed. When contextual management operation maintenance work is conducted, the method can remarkably improve the working efficiency.

Description

technical field [0001] The invention relates to operation and maintenance technology, in particular to a method for quickly executing the last command and replacing specified parameters. Background technique [0002] When managing, operating and maintaining the KUX operating system, reducing keyboard input can greatly improve the efficiency of the staff. The shortcut keys of the operating system are a good example. When the management and operation and maintenance work of the operating system are related back and forth, often the next executed command is only different from the previous executed command in individual parameters. Using the arrow keys or the shortcut of Ctrl+P can only call up a command , and then use the arrow keys to navigate to the specified parameter to modify. This is more time-consuming, and if you make a mistake and enter a wrong character for a certain parameter, the entire command will be unavailable, and you need to re-write the command. Contents ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/30
Inventor 张晓伟
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products