Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for shell reading input

A variable and function technology, applied in the field of shell reading and input, can solve problems such as garbled characters, inflexible deletion of wrong content, etc.

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

AI Technical Summary

Problems solved by technology

In the prior art, the read command is generally used to receive input in a shell script, or the read command and echo are used in combination. This method is easy to receive garbled characters or when an input error occurs, and it is inflexible to delete the wrong content , especially in these scenes that need to frequently use code scanning and manual typing, this inconvenience will be more obvious

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for shell reading input
  • Method and system for shell reading input
  • Method and system for shell reading input

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

[0023] Based on the above, on the one hand, the embodiment of the present invention provides a method for shell to read input, with figure 1 Is the method flowchart of the present invention, appended figure 2 It is a system structure diagram of the present invention, and the method includes:

[0024] Step 101, call a function, and the function receives a parameter;

[0025] Shell invokes a function, assuming that the function name is scan (Shell script function), and the scan function receives a parameter as a prompt fo...

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 and a system for shell reading input, and is applied to Linux and Unix platforms. A method for reading external input information is packaged into a function so as to conveniently call a Shell script, an input secondary confirmation prompt is increased, an algorithm and a judgment method are used for processing input characters to obtain an expectant input secondaryconfirmation prompt, an input error character is deleted by pressing a Backspace key, special characters except a filtering keyboard are input, the development efficiency and quality of a server testscript can be improved, operation efficiency is improved, and the problem of messy codes when a test program is input and deleted is effectively solved.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a method and system for shell reading input. Background technique [0002] A large number of shell scripts are used in the development of server diag test programs. In many cases and scenarios, it is necessary to prompt the operator to enter the corresponding machine information, workstation, operator number, etc. in front of the screen, and then receive the corresponding input through the parameters of the script and follow Check the standard data. In the prior art, the read command is generally used to receive input in a shell script, or the read command and echo are used in combination. This method is easy to receive garbled characters or when an input error occurs, and it is inflexible to delete the wrong content , especially in these scenes that need to scan the code frequently and type in manually, this inconvenience will be more obvious. Contents of the invention [00...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 高准枚
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products