CN109814911A - Method, apparatus, computer equipment and storage medium for Manage Scripts program - Google Patents

Method, apparatus, computer equipment and storage medium for Manage Scripts program Download PDF

Info

Publication number
CN109814911A
CN109814911A CN201811535049.1A CN201811535049A CN109814911A CN 109814911 A CN109814911 A CN 109814911A CN 201811535049 A CN201811535049 A CN 201811535049A CN 109814911 A CN109814911 A CN 109814911A
Authority
CN
China
Prior art keywords
shell script
program
configuration center
terminal device
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811535049.1A
Other languages
Chinese (zh)
Inventor
刘根生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811535049.1A priority Critical patent/CN109814911A/en
Publication of CN109814911A publication Critical patent/CN109814911A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application provides a kind of method, apparatus, computer equipment and storage medium for Manage Scripts program, applied to configuration center, the configuration center includes at least one program groups, and each program groups at least one described program groups includes at least one shell script;The described method includes: obtaining the call request of terminal device, the call request is used for request target shell script, at least one described shell script includes the target shell script;Feedback information is generated according to the call request and is sent to the terminal device, and the feedback information includes the target shell script.In the embodiment of the present application, by the way that at least one program groups is stored in configuration center, terminal device can obtain the target shell script from the configuration center, realize automatic management shell script, can be effectively reduced cost of labor and obtain the ratio of wrong shell script.

Description

Method, apparatus, computer equipment and storage medium for Manage Scripts program
Technical field
This application involves electronic technology field more particularly to a kind of method, apparatus for Manage Scripts program, computer Equipment and storage medium.
Background technique
In the prior art, Groovy script is used as the reading of the preposition of background service, postpositive disposal and configuration information It takes, therefore when a certain application is wanted to carry out bug reparation or increase certain some function, often relates to Groovy script file Reading, but due to being likely to be different in the different phases environment such as exploitation, test, production, in this case, by each Script file is uploaded to each application server by hand by developer, it is easy to there is file conflict, the various problems such as environment is obscured, Script file is caused to be unable to operate normally.
Summary of the invention
The purpose of the application is to provide a kind of for the method, apparatus of Manage Scripts program, computer equipment and storage Jie Matter, it is of the existing technology for solving the problems, such as.
To achieve the above object, the application provides a kind of method for Manage Scripts program, is applied to configuration center, institute Stating configuration center includes at least one program groups, and each program groups at least one described program groups includes at least one script Program the described method comprises the following steps:
Step 01, the configuration center obtains the call request of terminal device, and the call request is used for request mesh Shell script is marked, at least one described shell script includes the target shell script;
Step 02, the configuration center generates feedback information according to the call request and is sent to the terminal device, The feedback information includes the target shell script.
Further, the call request includes the identification information of the target program group at least one described program groups; Wherein, the step 02 includes:
The configuration center generates the feedback information and is sent to described according to the identification information of the target program group Terminal device, the feedback information include the target program group, and the target program group includes the target shell script.
Further, before the step 01, the method also includes:
Step 03, the configuration center sends the first information to the terminal device, the first information include it is described extremely The identification information for the shell script that the identification information of each program groups and each program groups include in a few program groups.
Further, the call request includes the identification information of the target shell script;
Wherein, the step 02 includes:
The configuration center generates the feedback information and is sent to institute according to the identification information of the target shell script Terminal device is stated, the feedback information includes the target shell script.
Further, before the step 01, the method also includes:
Step 04, the configuration center sends the second information to the terminal device, and second information includes described match Set the identification information of all shell scripts at center.
Further, the method also includes:
After the configuration center updates shell script, increases shell script or the shell script of deletion, Xiang Suoshu terminal is set Preparation send notification information, and the notification information is for notifying the terminal device to update, increased or deleted script journey The identification information of sequence.
Further, the step 01 includes:
The configuration center obtains the call request by the calling function of the terminal device.
To achieve the above object, the application also provides a kind of device of Manage Scripts program, is applied to configuration center, described Configuration center includes at least one program groups, and each program groups at least one described program groups includes at least one script journey Sequence the described method comprises the following steps:
Module is obtained, for obtaining the call request of terminal device, the call request is used for request target script Program, at least one described shell script include the target shell script;
Processing module, it is described anti-for generating feedback information according to the call request and being sent to the terminal device Feedforward information includes the target shell script.
Further, the call request includes the identification information of the target program group at least one described program groups; Wherein, the processing module is specifically used for:
According to the identification information of the target program group, generates the feedback information and be sent to the terminal device, institute Stating feedback information includes the target program group, and the target program group includes the target shell script.Further, described Device further include:
Sending module, before the call request for obtaining module acquisition terminal device, the sending module is used for institute It states terminal device and sends the first information, the first information includes the mark letter of each program groups at least one described program groups The identification information for the shell script that breath and each program groups include.
Further, the call request includes the identification information of the target shell script;
Wherein, the processing module is specifically used for:
The configuration center generates the feedback information and is sent to institute according to the identification information of the target shell script Terminal device is stated, the feedback information includes the target shell script.
Further, described device further include:
Sending module, before the call request for obtaining module acquisition terminal device, the sending module is used for institute It states terminal device and sends the second information, second information includes the identification information of all shell scripts of the configuration center.
Further, the sending module is also used to:
After the configuration center updates shell script, increases shell script or the shell script of deletion, Xiang Suoshu terminal is set Preparation send notification information, and the notification information is for notifying the terminal device to update, increased or deleted script journey The identification information of sequence.
Further, the acquisition module is specifically used for:
The call request is obtained by the calling function of the terminal device.
To achieve the above object, the application also provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor are realized above-mentioned when executing the computer program The step of method.
To achieve the above object, the application also provides computer readable storage medium, is stored thereon with computer program, institute State the step of above method is realized when computer program is executed by processor.
Method, apparatus, computer equipment and storage medium provided by the present application for Manage Scripts program, by near A few program groups is stored in configuration center, when terminal device needs target shell script, it is only necessary to Xiang Suoshu configuration center hair Raw call request can obtain the target shell script from the configuration center, realize automatic management shell script, keep away Exempted to upload the target shell script to the terminal device by artificial mode, can be effectively reduced cost of labor and Obtain the ratio of wrong shell script.
In other words, when the terminal device needs to carry out shell script update or carries out bug reparation, by institute It states configuration center and sends call request, to obtain the shell script for needing to be updated or repair automatically, avoid artificial Addition or the file conflict problem for uploading the generations such as the mismatch of running environment caused by shell script.
In addition, the method or the update terminal device journey of the shell script of the update terminal device of the embodiment of the present application The method of the mark of sequence group can make the mark and/or program of the shell script of the configuration center and the terminal device The mark of group keeps synchronizing, and then improves the efficiency of automatic Manage Scripts program.
Detailed description of the invention
Fig. 1 is flow chart of the application for the embodiment of the method for Manage Scripts program;
Fig. 2 is flow chart of the application for another embodiment of the method for Manage Scripts program;
Fig. 3 is flow chart of the application for the further embodiment of the method for Manage Scripts program;
Fig. 4 is the program module schematic diagram of the Installation practice of the application Manage Scripts program;
Fig. 5 is the schematic diagram of the terminal device of the application.
Specific embodiment
This application involves method be suitable for the network equipment, be also applied for user equipment.
Wherein, the network equipment include it is a kind of can according to the instruction for being previously set or store, it is automatic carry out numerical value calculate with The electronic equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc..The network equipment its include but is not limited to computer, network master The cloud that machine, single network server, multiple network server collection or multiple servers are constituted;Here, cloud is by being based on cloud computing The a large number of computers or network servers of (Cloud Computing) is constituted, wherein and cloud computing is one kind of distributed computing, A virtual supercomputer consisting of a loosely coupled set of computers.The user equipment its include but is not limited to appoint What one kind can carry out the electronic product of human-computer interaction with user by keyboard, touch tablet or voice-operated device, such as mobile terminal, PDA etc..Wherein, the mobile terminal refers to the computer equipment that can be used on the move, including but not limited to mobile phone, notes Sheet, tablet computer, vehicle-mounted computer etc..Those skilled in the art will be understood that other mobile terminals, the network equipment are equally applicable It in the application, should also be included within the application protection scope, and be incorporated herein by reference.
It can be applied to application program in the present processes, the application program can be a certain or a few in order to complete Particular task and the computer program by developing operation on operating system, what is including but not limited to used on computer answers With program, the application program etc. that is used on mobile terminal.
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.Based on the embodiment in the application, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall in the protection scope of this application.
The application provides a kind of method for Manage Scripts program, is applied to configuration center, and the configuration center includes At least one program groups, each program groups at least one described program groups includes at least one shell script, please refers to figure 1, the method for Manage Scripts program of the present embodiment may include:
Step 01, the configuration center obtains the call request of terminal device, and the call request is used for request mesh Shell script is marked, at least one described shell script includes the target shell script.
Step 02, the configuration center generates feedback information according to the call request and is sent to the terminal device, The feedback information includes the target shell script.
It should be understood that the configuration center of the embodiment of the present application can be any equipment for being equipped with Consul.Such as it is equipped with The terminal device or the network equipment of Consul.Wherein, Consul is the service of a support multiple data centers distribution High Availabitity It was found that and the shared service software of configuration, Consul come with WEB UI, WEB UI is the visual service that Consul is provided Web interface can operate key/value and service, node.It in the embodiment of the present application, can be shell script Name is referred to as KEY, and the content of script file is submitted to the electronic equipment for being equipped with Consul as VALUE.Optionally, Consul KEY/VAL can be distributed under different catalogues, it is possible thereby to distinguish different test environment and production environment with catalogue. Optionally, in some embodiments, before the call request that configuration center obtains terminal device, the method can also be wrapped Include: configuration center obtains shell script, and the shell script includes shell script and the shell script identification information.
In the embodiment of the present application, by the way that at least one program groups is stored in configuration center, terminal device needs target foot When this program, it is only necessary to which call request occurs for Xiang Suoshu configuration center, can obtain the target script from the configuration center Program realizes automatic management shell script, avoids and uploads the target to the terminal device by artificial mode Shell script can be effectively reduced cost of labor and obtain the ratio of wrong shell script.
Particularly, it for large-scale distributed application program, avoids and shell script is uploaded by artificial mode, is synchronous To all application program nodes, to improve development deployment and O&M efficiency.Specifically, large-scale application program generally requires pipe A shell scripts up to a hundred are managed, the technical solution of the embodiment of the present application directly manages all scripts by the web interface of Consul File, avoid craft or shell (shell) script distribute these program files to each application program server node, To improve development deployment and O&M efficiency.Optionally, in some embodiments, the configuration center or the terminal device It can be by the server item (Spring Cloud Config) of installation for storing KEY/VALUE, i.e. shell script.By This, after the configuration center obtains shell script, the shape for the key-value pair that can be constituted according to identification information-shell script content Formula stores the shell script.For example, after configuration center obtains the shell script, according to filename-shell script content shape Formula stores the shell script, and file name-shell script Composition of contents key-value pair corresponds to unique identification information, the mark Knowing information to can be the shell script is filename, is also possible to the number of other forms.
The specific implementation of the call request of the embodiment of the present application is described in detail below.
In one embodiment, the call request includes the mark of the target program group at least one described program groups Information.
Wherein, the step 02 includes:
The configuration center generates the feedback information and is sent to described according to the identification information of the target program group Terminal device, the feedback information include the target program group, and the target program group includes the target shell script.
In other words, when the terminal device needs the program being applied to carry out Bug reparation or in the application program When increasing certain functions, need by increasing shell script or to modify update to existing shell script, at this point, the end End equipment can send the call request to the configuration center, and the call request includes the mark letter of caller group Breath.
It should be understood that in the embodiment of the present application, the identification information of described program group can be there are many form.For example, program Group can establish one-to-one relationship between identification information.
The configuration center can determine the identification information for needing caller group according to the call request as a result,.Tool Body, after the configuration center obtains the call request of the terminal device, it can extract in the call request The identification information of program groups, so that it is determined that the mark for the program groups for needing to call.
For example, the corresponding identification information of program groups 1 can be A, the corresponding identification information of program groups 2 can be B, in this way when When call request includes identification information A, after the configuration center obtains the call request, it can extract in the call request Identification information A.Then, the configuration center can determine program by identification information A and the corresponding relationship of program groups 1 is organized, includes at least one shell script in described program group 1.
For another example when the identification information of program groups is dev, it may also be said to which directory name dev is identification information, in the catalogue It may include at least one shell script under dev.
In the concrete realization, the terminal device first can send call request to the configuration center (consul), so The corresponding target program group of identification information for obtaining program groups by the feedback information that the configuration center is sent afterwards, finally, institute The target shell script can be obtained in the target program group by stating terminal device.
As shown in Fig. 2, the method may also include that before the step 01
Step 03, the configuration center sends the first information to the terminal device, the first information include it is described extremely The identification information for the shell script that the identification information of each program groups and each program groups include in a few program groups.
It should be understood that the embodiment of the present application does not make additional qualification to the concrete form of the mark of described program group.For example, described The mark of program groups can be file name.Optionally, the file name includes but is not limited to: the file of system script program Title and other kinds of file name.Wherein, the file name of the system script program includes but is not limited to following system File name:
Interactive demonstration and assessment system (Internet Demonstration and Evaluation System, IDES), development system (Development System, DEV), quality assurance system (Quality Assurance System, ) and production system (Production System, PRD) QAS.
For example, the first information includes IDES.
In further embodiments, the call request includes the identification information of the target shell script.
Wherein, the step 02 includes:
The configuration center generates the feedback information and is sent to institute according to the identification information of the target shell script Terminal device is stated, the feedback information includes the target shell script.
As shown in figure 3, the method may also include that before the step 01
Step 04, the configuration center sends the second information to the terminal device, and second information includes described match Set the identification information of all shell scripts at center.
Specifically, the configuration center can be believed after extracting the identification information in call request according to the mark It ceases the corresponding relationship between script application programe and determines shell script that needs call.For example, working as identification information A and script In the corresponding situation of program 1, configuration center can determine that the shell script that needs call is script journey according to identification information A Sequence 1.
For example, configuration center can determine " the ABCD- according to the identification information when identification information is " ABCD-1 " 1 " corresponding shell script.
It should be understood that the description of the above-mentioned implementation to call request is merely illustrative.The embodiment of the present application is unlimited In this.
For example, the first information and/or second information can also be by described in other alternate embodiments The mode that configuration center and the terminal device are negotiated determines, alternatively, the first information and/or second information can be with It is determined by the terminal device, further, the terminal device closes first mapping relations and/or second mapping System is sent to the configuration center.
In the embodiment of the present application, the step 01 be can specifically include:
The configuration center obtains the call request by the calling function of the terminal device.
The configuration center can receive the call request that the terminal device is sent, and the configuration center can also be with The call request that the terminal device is sent is received by intermediate equipment, the embodiment of the present application is not especially limited.
By taking the call request includes the identification information of the target program group as an example.In the embodiment of the present application, described Terminal device can first introduce the dependence packet (Consul-Api.jar) of the configuration center, then utilize the configuration center The power function (getKVValues ()) of the acquisition KEY/VALUE of client (ConsulClient) object class is all to obtain Target shell script in program groups, then one by one with identification information (KEY value) for filename, by the corresponding target script Program (VALUE) is saved to the terminal device.
It should be understood that the function call order includes but is not limited to following form in the embodiment of the present application:
{GetKVValues(String keyPrefix,QueryParams queryParams)};
Wherein, the GetKVValues indicates the function call order.Described in the String keyPrefix expression The identification information of target program group.The QueryParams indicates query argument.
Optionally, the processor of the terminal device can directly generate the calling according to the mark of target program group with taproot Function simultaneously executes.
In conclusion the technical solution of the embodiment of the present application is by being stored in configuration center at least one program groups, it is whole When end equipment needs target shell script, it is only necessary to which call request occurs for Xiang Suoshu configuration center, can be from the configuration center The target shell script is obtained, automatic management shell script is realized, is avoided through artificial mode to the terminal Equipment uploads the target shell script, can be effectively reduced cost of labor and obtains the ratio of wrong shell script.
In other words, when the terminal device needs to carry out shell script update or carries out bug reparation, by institute It states configuration center and sends call request, to obtain the shell script for needing to be updated or repair automatically, avoid artificial Addition or the file conflict problem for uploading the generations such as the mismatch of running environment caused by shell script.
Present invention also provides a kind of methods of identification information for synchronizing the configuration center and the terminal device.Specifically The method for Manage Scripts program on ground, the present embodiment may include:
After the configuration center updates shell script, increases shell script or the shell script of deletion, Xiang Suoshu terminal is set Preparation send notification information, and the notification information is for notifying the terminal device to update, increased or deleted script journey The identification information of sequence.
It should be understood that the embodiment of the present application does not make the mode for the notification information that the terminal device obtains the configuration center It is specific to limit.
In other alternate embodiments, the terminal device can in real time or periodically monitor the configuration center, Further, the content that the terminal device monitors that the configuration center occurs in update or the configuration center updates When, the solicited message of the notification information occurs to the configuration center for the terminal device, and the configuration center receives institute When stating the solicited message of the communication information of terminal device transmission, the configuration center sends the notice letter to the terminal device Breath.
As an example, the terminal device monitor whether the configuration center occur to update can be by described in monitoring The version of configuration center determines.For example, when the version model that the terminal device monitors the configuration center changes, it is described Terminal device sends the solicited message of the notification information to the configuration center.
As another example, the terminal device can monitor the mark of the program groups on the memory of the configuration center The mark of knowledge and/or shell script.For example, the terminal device can specifically monitor the configuration center with more new script When the mark of the shell script of the mark of program, the mark for increasing shell script or deletion, described in the transmission of Xiang Suoshu configuration center The solicited message of notification information.In another example the terminal device can specifically monitor the configuration center with more new procedures When the mark of the program groups of the mark of group, the mark for increasing program groups or deletion, Xiang Suoshu configuration center sends the notice letter The solicited message of breath.
In other words, in the embodiment of the present application, can by one can fixed time testing content for script whether have update Or the application program for increasing, deleting, this application program can be run in the terminal device, and from the configuration The heart obtains new content for script.Optionally, this application program can integrate it is in need call shell script distribution Application program and/or terminal device.
In the concrete realization, the terminal device can pass through the program groups catalogue of the definition configuration center (Consul) And/or the corresponding version number of shell script catalogue, such as the program groups catalogue and/or script journey of the configuration center (Consul) The preface and table of contents records corresponding modification and indexes (ModifyIndex) value, comes whether determining program group has update with this.
If the terminal device monitors the program groups mesh of the configuration center (Consul) in the configuration center After record and/or corresponding modification index (ModifyIndex) the value update of shell script catalogue, by function call order to configuration Center (consul) sends call request, obtains the script file content of all modifications and saves or cover and is local.
The method of the shell script of the update terminal device of the embodiment of the present application updates the terminal device program groups Mark method, the mark and/or program groups of the shell script of the configuration center and the terminal device can be made Mark keeps synchronizing, and then improves the efficiency of automatic Manage Scripts program.
It should be understood that the application is not limited to the details of above-mentioned exemplary embodiment, and without departing from spirit herein or In the case where essential characteristic, the application can be realized in other specific forms.Above-described embodiment is only exemplary, Er Qieshi It is unrestricted furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.Multiple lists of statement Member or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to indicate Title, and do not indicate any particular order.It should be noted that the application can be in the group of software and/or software and hardware Be carried out in zoarium, for example, each device of the invention can be used specific integrated circuit (ASIC) or any other similar to hardware Equipment is realized.In one embodiment, the software program of the application can be executed by processor to realize step described above Rapid or function.Similarly, the software program (including relevant data structure) of the application can be stored in computer-readable note In recording medium, for example, RAM memory, magnetic or optical driver or floppy disc and similar devices.In addition, some steps of the application Or hardware can be used to realize in function, for example, as the circuit cooperated with processor thereby executing each step or function.
Fig. 4 is the schematic block diagram of the device of the Manage Scripts program of the embodiment of the present application.
As shown in figure 4, in the present embodiment, the device 10 of Manage Scripts program may include or be divided into one or more A program module, one or more program module are stored in storage medium, and as performed by one or more processors, To complete the application, and it can realize the above-mentioned method for Manage Scripts program.The so-called program module of the application is to refer to Complete the series of computation machine program instruction section of specific function, device 10 of the relative program more suitable for description Manage Scripts program Implementation procedure in storage medium.The function of each program module in the present embodiment will specifically be introduced by being described below.
Device 10 provided by the present application can be applied to configuration center, and the configuration center includes at least one program groups, institute The each program groups stated at least one program groups includes at least one shell script, be the described method comprises the following steps:
As shown in figure 4, the device 10 of Manage Scripts program may include:
Module 11 is obtained, for obtaining the call request of terminal device, the call request is used for request target foot This program, at least one described shell script include the target shell script;
Processing module 12, it is described for generating feedback information according to the call request and being sent to the terminal device Feedback information includes the target shell script.
Further, the call request includes the identification information of the target program group at least one described program groups; Wherein, the processing module 12 is specifically used for:
According to the identification information of the target program group, generates the feedback information and be sent to the terminal device, institute Stating feedback information includes the target program group, and the target program group includes the target shell script.
Further, described device further include:
Sending module, it is described obtain module 11 obtain terminal device call request before, the sending module be used for The terminal device sends the first information, and the first information includes the mark of each program groups at least one described program groups The identification information for the shell script that information and each program groups include.
Further, the call request includes the identification information of the target shell script;
Wherein, the processing module 12 is specifically used for:
The configuration center generates the feedback information and is sent to institute according to the identification information of the target shell script Terminal device is stated, the feedback information includes the target shell script.
Further, described device further include:
Sending module, it is described obtain module 11 obtain terminal device call request before, the sending module be used for The terminal device sends the second information, and second information includes the mark letter of all shell scripts of the configuration center Breath.
Further, the sending module is also used to:
After the configuration center updates shell script, increases shell script or the shell script of deletion, Xiang Suoshu terminal is set Preparation send notification information, and the notification information is for notifying the terminal device to update, increased or deleted script journey The identification information of sequence.
Further, the acquisition module 11 is specifically used for:
The call request is obtained by the calling function of the terminal device.
A kind of computer equipment is also provided in the present embodiment, can such as execute the smart phone, tablet computer, notes of program This computer, desktop computer, rack-mount server, blade server, tower server or Cabinet-type server (including independence Server or multiple servers composed by server cluster) etc..The computer equipment 20 of the present embodiment include at least but It is not limited to: memory 21, the processor 22 of connection can be in communication with each other by system bus, as shown in Figure 5.It should be pointed out that Fig. 5 illustrates only the computer equipment 20 with component 21-22, it should be understood that being not required for implementing all show Component, the implementation that can be substituted is more or less component.
In the present embodiment, memory 21 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, memory card (example Such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD etc..In some embodiments, memory 21 can be the internal storage unit of computer equipment 20, such as the calculating The hard disk or memory of machine equipment 20.In further embodiments, memory 21 is also possible to the external storage of computer equipment 20 The plug-in type hard disk being equipped in equipment, such as the computer equipment 20, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 21 can also both include meter The internal storage unit for calculating machine equipment 20 also includes its External memory equipment.In the present embodiment, memory 21 is commonly used in storage Be installed on the operating system and types of applications program software of computer equipment 20, for example, embodiment Manage Scripts program device 10 program code etc..In addition, memory 21 can be also used for temporarily storing all kinds of numbers that has exported or will export According to.
Processor 22 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in control computer equipment 20 overall operation.In the present embodiment, program code or processing data of the processor 22 for being stored in run memory 21, Such as the device 10 of operational management shell script, to realize the method for Manage Scripts program of embodiment.
A kind of computer readable storage medium is also provided in the present embodiment, such as flash memory, hard disk, multimedia card, memory card (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD, server, App application program store etc., are stored thereon with computer program, real when program is executed by processor Existing corresponding function.The computer readable storage medium of the present embodiment is used for the device 10 of storage management shell script, by processor The method for Manage Scripts program of embodiment is realized when execution.
It should be understood that above-mentioned the embodiment of the present application serial number is for illustration only, do not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that the above method is implemented Example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all to utilize this Shen Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills Art field similarly includes in the scope of patent protection of the application.

Claims (10)

1. a kind of method of Manage Scripts program, which is characterized in that be applied to configuration center, the configuration center includes at least one A program groups, each program groups at least one described program groups includes at least one shell script;
It the described method comprises the following steps:
Step 01, the configuration center obtains the call request of terminal device, and the call request is used for request target foot This program, at least one described shell script include the target shell script;
Step 02, the configuration center generates feedback information according to the call request and is sent to the terminal device, described Feedback information includes the target shell script.
2. the method according to claim 1, wherein the call request includes at least one described program groups Target program group identification information;
Wherein, the step 02 includes:
The configuration center generates the feedback information and is sent to the terminal according to the identification information of the target program group Equipment, the feedback information include the target program group, and the target program group includes the target shell script.
3. according to the method described in claim 2, it is characterized in that, before the step 01, the method also includes:
Step 03, the configuration center sends the first information to the terminal device, and the first information includes described at least one The identification information for the shell script that the identification information of each program groups and each program groups include in a program groups.
4. the method according to claim 1, wherein the call request includes the mark of the target shell script Know information;
Wherein, the step 02 includes:
The configuration center generates the feedback information and is sent to the end according to the identification information of the target shell script End equipment, the feedback information include the target shell script.
5. according to the method described in claim 4, it is characterized in that, before the step 01, the method also includes:
Step 04, the configuration center sends the second information to the terminal device, and second information includes in the configuration The identification information of all shell scripts of the heart.
6. the method according to any one of claims 1 to 5, which is characterized in that the method also includes:
After the configuration center updates shell script, increases shell script or the shell script of deletion, Xiang Suoshu terminal device hair Send notification information, the notification information is used to the terminal device be notified to update, increased or deleted shell script Identification information.
7. the method according to any one of claims 1 to 5, which is characterized in that the step 01 includes:
The configuration center obtains the call request by the calling function of the terminal device.
8. a kind of device for Manage Scripts program, which is characterized in that be applied to configuration center, the configuration center includes extremely Lack a program groups, each program groups at least one described program groups includes at least one shell script;
Described device includes:
Module is obtained, for obtaining the call request of terminal device, the call request is used for request target shell script, At least one described shell script includes the target shell script;
Processing module, for generating feedback information according to the call request and being sent to the terminal device, the feedback letter Breath includes the target shell script.
9. a kind of computer equipment, which is characterized in that including memory, processor and store on a memory and can handle The computer program run on device, the processor are realized described in any one of claim 1 to 7 when executing the computer program The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, which is characterized in that described The step of any one of claim 1 to 7 the method is realized when computer program is executed by processor.
CN201811535049.1A 2018-12-14 2018-12-14 Method, apparatus, computer equipment and storage medium for Manage Scripts program Pending CN109814911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535049.1A CN109814911A (en) 2018-12-14 2018-12-14 Method, apparatus, computer equipment and storage medium for Manage Scripts program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535049.1A CN109814911A (en) 2018-12-14 2018-12-14 Method, apparatus, computer equipment and storage medium for Manage Scripts program

Publications (1)

Publication Number Publication Date
CN109814911A true CN109814911A (en) 2019-05-28

Family

ID=66602053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535049.1A Pending CN109814911A (en) 2018-12-14 2018-12-14 Method, apparatus, computer equipment and storage medium for Manage Scripts program

Country Status (1)

Country Link
CN (1) CN109814911A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078637A (en) * 2019-10-12 2020-04-28 中国平安财产保险股份有限公司 Script file online method and device, computer equipment and storage medium
CN111736847A (en) * 2020-06-15 2020-10-02 北京奇艺世纪科技有限公司 Script language mapping method, electronic device and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078637A (en) * 2019-10-12 2020-04-28 中国平安财产保险股份有限公司 Script file online method and device, computer equipment and storage medium
CN111736847A (en) * 2020-06-15 2020-10-02 北京奇艺世纪科技有限公司 Script language mapping method, electronic device and readable storage medium
CN111736847B (en) * 2020-06-15 2023-07-18 北京奇艺世纪科技有限公司 Script language mapping method, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
US10303586B1 (en) Systems and methods of integrated testing and deployment in a continuous integration continuous deployment (CICD) system
US11172022B2 (en) Migrating cloud resources
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
US20190272224A1 (en) Establishing and monitoring programming environments
CN104679500B (en) Method and device for realizing automatic generation of entity class
CN111338834B (en) Data storage method and device
CN115812298A (en) Block chain management of supply failure
CN116257438A (en) Updating method of interface test case and related equipment
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN110737458A (en) code updating method and related device
CN114064438A (en) Database fault processing method and device
CN115129574A (en) Code testing method and device
US20180336171A1 (en) System and method for constructing extensible event log with javascript object notation (json) encoded payload data
CN103095698A (en) Client software repairing method and repairing device and communication system
CN115878128A (en) Deployment method and device of application program
CN111352664A (en) Distributed machine learning task starting method, system, equipment and storage medium
CN114968823A (en) Automatic testing method, device, equipment and storage medium
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN115268964A (en) Data reinjection method and system, electronic device and readable storage medium
CN112559001B (en) Method and device for updating application
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN113282489A (en) Interface testing method and device
CN112667491A (en) Function test method and device of virtual machine
CN113031960B (en) Code compiling method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination