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

Automatic script generation method and device

An automatic generation and scripting technology, which is applied to program control devices, creating/generating source code, and program loading/starting, etc., can solve the problem of spending a certain time for script testing, prolonging the installation and deployment time of service software, and increasing the complexity of script generation. and other problems to achieve the effect of saving installation and deployment time and reducing complexity

Inactive Publication Date: 2017-01-04
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing automatic deployment tools also have the following disadvantages: when automatically deploying different service software, different scripts need to be written separately, and then the configuration information is deployed based on the respective scripts, which requires technical personnel to be proficient in each This increases the complexity of script generation and increases the installation threshold of service software; in addition, it takes a certain amount of time to test the script after writing, and it can be used for service software configuration information only after the test is successful Deployment, thus prolonging the installation and deployment time of service software

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
  • Automatic script generation method and device
  • Automatic script generation method and device
  • Automatic script generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0020] figure 1 A schematic flowchart of a method for automatically generating scripts provided in Embodiment 1 of the present invention is applicable to the case of automatically deploying configuration information when installing service software. This method can be executed by an automatic script generation device, wherein the device can be configured by Software and / or hardware implementation, integrated in a deployment tool for deploying configuration information of service software to be installed.

[0021] Such as figure 1 As shown, a method for automatically generating a script provided in Embodiment 1 of the present invention includes the following operations:

[0022] S101. Obtain the parameter information edited by the user and depended on when installing the service software.

[0023] In this embodiment, the service software can be specifically understood as the software installed when a certain functional application is implemented in the electronic device, and ...

Embodiment 2

[0039] figure 2 It is a schematic flowchart of a script automatic generation method provided by Embodiment 2 of the present invention. The embodiment of the present invention is optimized on the basis of the above embodiment. In this embodiment, the script automatic generation method further includes: if set If there is at least one service software to be installed in the specified service software directory, the installation package of the service software is obtained; if there is an installation replacement file corresponding to the service software in the set configuration installation directory, then in the service software Find the sub-installation file corresponding to the installation replacement file in the software installation package, and replace the sub-installation file with the installation replacement file to form a new installation package; according to the script file of the service component and the installation package , installing and deploying the service...

Embodiment 3

[0062] image 3 It is a schematic flowchart of a preferred embodiment of a script automatic generation method provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this Embodiment 3 provides a preferred embodiment, and its application scenario is a distributed environment Installation and deployment of Hadoop service software and Spark service software during the construction of the big data platform.

[0063] Such as image 3 As shown, the implementation process of this preferred embodiment specifically includes the following operations:

[0064] S301. Obtain the Hadoop installation package and the Spark installation package in the service software directory.

[0065] Exemplarily, firstly, it is determined that there are two service software installation packages, Hadoop and Spark, in the set service software directory, and these two installation packages are obtained.

[0066] S302. Determine whether the first installation replacement f...

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 embodiment of the invention discloses an automatic script generation method and device. The method comprises the steps of obtaining user-edited parameter information on which installation of service software relies, determining an operation system environment where the service software is to be installed, determining a script editing format corresponding to the operation system, and according to the script editing format, assembling the parameter information into a script file capable of being executed in the operation system environment in a set editing language. Through the method, the script file required for deployment of the service software configuration information can be automatically generated simply and quickly according to information provided by a user, so that complexity of script generation and installation threshold of the service software are reduced, and meanwhile the installation and deployment time of the service software is shortened.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computer applications, and in particular to a method and device for automatically generating scripts. Background technique [0002] When installing service software, especially in the process of building a distributed big data platform, it is usually necessary to manually deploy the configuration information of the service software to realize the installation of the service software. However, when manually deploying the configuration information required for the installation of the service software It's easy to make mistakes, hence the advent of automated deployment tools for installing service software. [0003] For the automatic deployment tool, the automatic deployment of configuration information is mainly realized through executable scripts written by technicians. However, the existing automatic deployment tools also have the following disadvantages: when automatically depl...

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): G06F9/44G06F9/445
CPCG06F8/30G06F8/61
Inventor 陈振安
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More