Unlock instant, AI-driven research and patent intelligence for your innovation.

An encapsulation method of linux command line

An encapsulation method and command line technology, which is applied in the direction of program control devices, program control design, instruments, etc., can solve the problems of not supporting root user execution, not supporting calling multiple versions, inputting passwords, etc.

Active Publication Date: 2019-05-21
G CLOUD TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem solved by the present invention is to provide a method for encapsulating the Linux command line, which solves the problem of repeated development of a variety of packaged Linux command line tools, does not support calling multiple versions of the Linux operating system command line, and calls commands for components started by non-privileged identities When running, the root user cannot be supported, and the password needs to be entered when the command line is invoked.

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
  • An encapsulation method of linux command line
  • An encapsulation method of linux command line
  • An encapsulation method of linux command line

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] There are many implementations of the present invention, here we take the cloud platform as an example to illustrate one of the implementation methods, the flow chart is as follows figure 1 As shown, the specific implementation process is as follows:

[0031] 1. First, add one or more files in the / etc / sudoers.d / directory of Linux to allow one or more users to execute the command line packaging tool as the root user without entering a password.

[0032] 2. Command line analysis;

[0033]

[0034] 3. Read and parse the configuration file;

[0035]

[0036] 4. Load the filter object of the filter file;

[0037]

[0038] 5. Match the command line filter object;

[0039]

[0040] 6. Encapsulate the command line;

[0041]

[0042] 7. Execute the command line;

[0043]

[0044] The whole process is over.

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 relates to a Linux command line packaging method. The Linux command line packaging method comprises the basic steps that 1, a password-free startup command line packaging tool is set; 2, command line parsing is performed; 3, a parsing configuration file is read; 4, filter objects of a filter file are loaded; 5, matching between command lines and the filter objects are performed; 6, the command lines are packaged; 7, the command lines are executed. The problem that application programs need to package Linux command lines according to different usage scenarios is solved. The general Linux command line packaging tool is provided, and the costs for repeatedly developing these components are avoided. The Linux command line packaging method can be applied to the application programs developed by using a variety of computer programming languages for command line packaging.

Description

technical field [0001] The invention relates to the technical field of system command processing, in particular to a Linux command line encapsulation method. Background technique [0002] A general cloud computing platform may be developed in multiple languages, and the components of the cloud computing platform based on the Linux operating system usually call different command lines. In order to support multiple different versions of Linux, these components are started with a non-privileged identity Further guarantee resource isolation. However, the components of the cloud platform call the command line, and there are the following problems: [0003] One is that the paths of some Linux commands are not exactly the same in different versions. Some commands can be executed in any path, while others do not. [0004] Second, when the command line is invoked by a component started with a non-privileged identity, sometimes the root user is required to execute it. [0005] The ...

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 Patents(China)
IPC IPC(8): G06F8/61G06F9/445
CPCG06F8/61G06F9/44505
Inventor 马桂成杨松季统凯
Owner G CLOUD TECH