Data processing method, device, computing equipment and medium for application program

By creating an interactive channel between the sub-process and the terminal input window in the Linux operating system, the problem that the sub-process cannot obtain user input data is solved, and the interaction between the user and the application and the flexible control of scheduled operations are realized.

CN113721933BActive Publication Date: 2024-08-23QI-ANXIN LEGENDSEC INFORMATION TECH (BEIJING) INC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010452139.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-25
Publication Date
2024-08-23
Estimated Expiration
2040-05-25

AI Technical Summary

Technical Problem

In the Linux operating system, the sub-process of the RPM package management tool cannot directly obtain the data entered by the user through the terminal, making it difficult to interact with the user and unable to control the execution of scheduled operations in real time.

Method used

By creating an interaction channel between the child process and the terminal input window, the child process can directly obtain the data entered by the user, and decide whether to continue to perform the scheduled operation by verifying the information entered by the user, including terminating the parent process to prevent the creation of new children. process.

Benefits of technology

It realizes the interaction between the sub-process and the user, allows the user to control the scheduled operation of the application in real time, and improves the flexibility of the application to perform the scheduled operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113721933B
    Figure CN113721933B
Patent Text Reader

Abstract

The present disclosure provides a data processing method for an application, comprising: obtaining target script data, wherein the target script data includes data required for performing a predetermined operation on the application, and the target script data includes first sub-script data and second sub-script data; running the first sub-script data to generate a request confirmation indication; obtaining user input data for the request confirmation indication; determining whether to run the second sub-script data based on the input data; and in response to determining to run the second sub-script data, running the second sub-script data to perform the predetermined operation on the application. The present disclosure also provides a data processing apparatus for an application, a computing device, a computer-readable storage medium, and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a data processing method for an application, a data processing apparatus for an application, a computing device, and a computer-readable storage medium. Background Art

[0002] In the GNU / Linux (referred to as Linux in this article) operating system, RPM (Red-Hat Package Manager) is a common software package management tool. The RPM software package management tool provides methods for uninstalling, installing, and upgrading related applications in the operating system. Among them, in the process of performing a predetermined operation in the Linux operating system through the RPM software package management tool, the parent process performs the predetermined operation by creating a child process. The predetermined operation includes uninstalling, installing, upgrading, and other operations performed on the application. When the predetermined operation is performed through the child process, the input data of the child process is the data stored in the pipeline opened by the parent process. The pipeline is a buffer opened by the parent process, and the parent process and the child process can read and write data from the buffer.

[0003] In the process of implementing the concept of the present disclosure, the inventors discovered that there are at least the following problems in the related art.

[0004] In the process of executing a scheduled operation in the Linux operating system through the RPM software package management tool, when the child process created by the parent process executes the scheduled operation, the input data of the child process is the data from the pipeline, resulting in the child process being unable to directly obtain the data input by the user through the terminal, thereby making it difficult for the child process to interact with the user when executing the scheduled operation, and the user cannot control the execution process of the scheduled operation in real time. In addition, when the child process executes the scheduled operation, although the RPM software package management tool has the function of terminating the current child process, the parent process will continue to create other child processes to execute the scheduled operation, resulting in the inability to terminate the execution of the scheduled operation. Summary of the invention

[0005] In view of this, the present disclosure provides an optimized data processing method for an application, a data processing apparatus for an application, a computing device, and a computer-readable storage medium.

[0006] One aspect of the present disclosure provides a data processing method for an application, comprising: acquiring target script data, wherein the target script data includes data required to perform a predetermined operation on the application, the target script data includes first sub-script data and second sub-script data, running the first sub-script data, generating a request confirmation indication, acquiring user input data for the request confirmation indication, determining whether to run the second sub-script data based on the input data, and in response to determining to run the second sub-script data, running the second sub-script data to perform the predetermined operation on the application.

[0007] According to an embodiment of the present disclosure, the method further includes: creating a first child process through a parent process, the parent process being used to control the execution of the target script data. Wherein, the executing of the first child script data includes: executing the first child script data through the first child process.

[0008] According to an embodiment of the present disclosure, the method further includes: creating an interactive channel between the first sub-process and the terminal input window. Wherein, obtaining the input data of the user in response to the request confirmation indication includes: obtaining the input data through the interactive channel through the first sub-process, wherein the input data is the data input by the user through the terminal input window.

[0009] According to an embodiment of the present disclosure, the above-mentioned creation of an interactive channel between the first sub-process and the terminal input window includes at least one of the following: running the target data in the first sub-script data to create the interactive channel, and running the first sub-script data to call the target program to create the interactive channel.

[0010] According to an embodiment of the present disclosure, the above-mentioned determining whether to run the second sub-script data based on the input data includes: obtaining verification data, determining whether the input data is consistent with the verification data to obtain a verification result, and determining whether to run the second sub-script data based on the verification result.

[0011] According to an embodiment of the present disclosure, the method further includes: in response to the verification result indicating that the input data is inconsistent with the verification data, prohibiting the execution of the second sub-script data.

[0012] According to an embodiment of the present disclosure, the prohibition of running the second sub-script data includes: terminating the parent process so as to prohibit the parent process from creating a second sub-process for running the second sub-script data.

[0013] According to an embodiment of the present disclosure, in response to determining to run the second sub-script data, running the second sub-script data includes: in response to determining to run the second sub-script data, creating the second child process through the parent process, and running the second sub-script data through the second child process.

[0014] According to an embodiment of the present disclosure, the above-mentioned running the first sub-script data includes: running the first sub-script data in a target operating system environment. The above-mentioned running the second sub-script data includes: running the second sub-script data in a target operating system environment. Wherein, the target operating system environment includes a Linux operating system environment.

[0015] Another aspect of the present disclosure provides a data processing device for an application, comprising: a first acquisition module, a generation module, a second acquisition module, a determination module, and an operation module. The first acquisition module acquires target script data, wherein the target script data includes data required for performing a predetermined operation on the application, and the target script data includes first sub-script data and second sub-script data. The generation module runs the first sub-script data and generates a request confirmation indication. The second acquisition module acquires user input data for the request confirmation indication. The determination module determines whether to run the second sub-script data based on the input data. The operation module runs the second sub-script data in response to determining to run the second sub-script data so as to perform the predetermined operation on the application.

[0016] According to an embodiment of the present disclosure, the device further includes: a first creation module, which creates a first child process through a parent process, and the parent process is used to control the operation of the target script data. Wherein, the operation of the first child script data includes: operating the first child script data through the first child process.

[0017] According to an embodiment of the present disclosure, the apparatus further includes: a second creation module, which creates an interactive channel between the first sub-process and the terminal input window. The step of obtaining the input data of the user in response to the request confirmation indication includes: obtaining the input data through the first sub-process via the interactive channel, wherein the input data is data input by the user through the terminal input window.

[0018] According to an embodiment of the present disclosure, the above-mentioned creation of an interactive channel between the first sub-process and the terminal input window includes at least one of the following: running the target data in the first sub-script data to create the interactive channel, and running the first sub-script data to call the target program to create the interactive channel.

[0019] According to an embodiment of the present disclosure, the above-mentioned determining whether to run the second sub-script data based on the input data includes: obtaining verification data, determining whether the input data is consistent with the verification data to obtain a verification result, and determining whether to run the second sub-script data based on the verification result.

[0020] According to an embodiment of the present disclosure, the above-mentioned device further includes: a prohibition module, in response to the verification result indicating that the input data is inconsistent with the verification data, prohibiting the execution of the second sub-script data.

[0021] According to an embodiment of the present disclosure, the prohibition of running the second sub-script data includes: terminating the parent process so as to prohibit the parent process from creating a second sub-process for running the second sub-script data.

[0022] According to an embodiment of the present disclosure, in response to determining to run the second sub-script data, running the second sub-script data includes: in response to determining to run the second sub-script data, creating the second child process through the parent process, and running the second sub-script data through the second child process.

[0023] According to an embodiment of the present disclosure, the above-mentioned running the first sub-script data includes: running the first sub-script data in a target operating system environment. The above-mentioned running the second sub-script data includes: running the second sub-script data in a target operating system environment. Wherein, the target operating system environment includes a Linux operating system environment.

[0024] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0025] Another aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and when the instructions are executed, are used to implement the method as described above.

[0026] According to the embodiments of the present disclosure, the above-mentioned data processing method for an application can at least partially solve the problem in the related art that the sub-process cannot directly obtain the data input by the user through the terminal, thereby making it difficult for the sub-process to interact with the user when performing the predetermined operation, and the user cannot control the execution process of the predetermined operation in real time. Therefore, it can be achieved that the sub-process can interact with the user during the process of performing the predetermined operation on the application, so that the user can control the execution process of the predetermined operation, thereby improving the technical effect of the flexibility of performing the predetermined operation on the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0028] Figure 1A to Figure 1B The application scenarios of the data processing method for an application and the data processing device for an application according to the embodiments of the present disclosure are schematically shown;

[0029] Figure 2 A flowchart of a data processing method for an application according to an embodiment of the present disclosure is schematically shown;

[0030] Figure 3 A flowchart of a data processing method for an application according to another embodiment of the present disclosure is schematically shown;

[0031] Figure 4 A block diagram schematically shows a data processing device for an application according to an embodiment of the present disclosure;

[0032] Figure 5 A block diagram schematically shows a data processing device for an application according to another embodiment of the present disclosure; and

[0033] Figure 6 A block diagram of a computer system suitable for data processing for an application according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0035] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0036] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0037] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0038] The embodiment of the present disclosure provides a data processing method for an application, comprising: obtaining target script data, wherein the target script data includes data required for performing a predetermined operation on the application, the target script data includes first sub-script data and second sub-script data, running the first sub-script data, and generating a request confirmation indication. Then, obtaining user input data for the request confirmation indication, and determining whether to run the second sub-script data based on the input data. Next, in response to determining to run the second sub-script data, running the second sub-script data so as to perform the predetermined operation on the application.

[0039] Figure 1A to Figure 1B The application scenarios of the data processing method for an application and the data processing device for an application according to the embodiments of the present disclosure are schematically shown. It should be noted that: Figure 1A to Figure 1B What is shown are merely examples of application scenarios to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0040] like Figure 1A and Figure 1B As shown, the application scenario 100 according to this embodiment may include, for example, a terminal 110 , a parent process 120 , and a child process 130 .

[0041] like Figure 1A As shown, for example, in the Linux operating system, RPM (Red-Hat Package Manager) is a common software package management tool. The RPM software package management tool can provide methods for uninstalling, installing, and upgrading related applications in the operating system. Among them, in the process of performing a predetermined operation in the Linux operating system through the RPM software package management tool, a child process 130 can usually be created through a parent process 120 to perform the predetermined operation, and the predetermined operation includes operations such as uninstalling, installing, and upgrading related applications.

[0042] According to the embodiment of the present disclosure, during the process of executing a predetermined operation, the data flow between the terminal 110, the parent process 120 and the child process 130 is as follows: Figure 1AFor example, the data transmitted between the terminal 110 and the parent process 120 is data a and data c. The data transmitted between the parent process 120 and the child process 130 is data b. The data transmitted between the child process 130 and the terminal 110 is data d.

[0043] In one embodiment, due to the functional limitation of the RPM software package management tool, the subprocess 130 can send the data d to the terminal 110 , but the subprocess 130 cannot directly obtain the input data input by the user from the terminal 110 .

[0044] like Figure 1B As shown, in order to enable the sub-process 130 to interact with the user when executing the predetermined operation, an interaction channel can be created between the sub-process 130 and the terminal 110, so that the sub-process 130 can directly obtain the input data e input by the user from the terminal 110, so that the sub-process 130 can interact with the user when executing the predetermined operation, so that the user can control the execution process of the predetermined operation.

[0045] Figure 2 The flowchart of the data processing method for an application according to an embodiment of the present disclosure is schematically shown.

[0046] like Figure 2 As shown, the method of the embodiment of the present disclosure may include, for example, the following operations S210 to S250.

[0047] In operation S210 , target script data is acquired, wherein the target script data includes data required to perform a predetermined operation on an application program, and the target script data includes first sub-script data and second sub-script data.

[0048] According to an embodiment of the present disclosure, the target script data may be, for example, script data that can be run in a target operating system environment, and the target operating system environment may be, for example, a Linux operating system environment. Executing a predetermined operation on an application may, for example, include uninstalling, installing, or upgrading the application in the target operating system environment. For example, the application may be uninstalled, installed, or upgraded in a Linux operating system by running the target script data.

[0049] In the embodiment of the present disclosure, the target script data may include, for example, a plurality of sub-script data. The embodiment of the present disclosure may implement the function of uninstalling, installing or upgrading the application by, for example, running the plurality of sub-script data.

[0050] In operation S220, the first sub-script data is executed to generate a confirmation request indication.

[0051] In the disclosed embodiment, running the first sub-script data, for example, includes running the first sub-script data in the target operating system environment. For example, when performing a predetermined operation on an application, a request confirmation indication may be generated by running the first sub-script data. Then, the request confirmation indication may be sent to the terminal so as to remind the user through the terminal to confirm whether it is necessary to continue to perform the predetermined operation on the application.

[0052] For example, taking the predetermined operation as an uninstall operation, when the target script data is run to uninstall the application, a request confirmation indication can be generated in the process of running the first sub-script data. The request confirmation indication can be used to remind the user to determine whether to continue uninstalling the application, or can also be used to remind the user to enter the uninstall password required to uninstall the application.

[0053] In operation S230, input data of a user requesting a confirmation indication is obtained.

[0054] According to an embodiment of the present disclosure, after the request confirmation indication is sent to the terminal for display, the user can input input data for the request confirmation indication through the terminal. The user's input data may include, for example, determining to continue uninstalling the application, or the user's input data may also be an uninstall password required to uninstall the application.

[0055] In operation S240, based on the input data, it is determined whether to execute the second sub-script data.

[0056] Next, in operation S250, in response to determining to execute the second sub-script data, the second sub-script data is executed to perform a predetermined operation on the application program.

[0057] According to an embodiment of the present disclosure, running the second sub-script data may include running the second sub-script data in a target operating system environment. For example, it may be determined based on the user's input data whether to run the second sub-script data to continue to perform a predetermined operation on the application. For example, if the user's input data indicates that the user determines to continue to uninstall the application, the second sub-script data may be run to continue to uninstall the application. Alternatively, when the user's input data is a correct uninstallation password, the second sub-script data may be run to continue to uninstall the application, and if the user's input data is an incorrect uninstallation password, the second sub-script data may be prohibited from running so as to stop continuing to uninstall the application.

[0058] It can be understood that when executing the target script data to implement the predetermined operation for the application, the embodiment of the present disclosure can obtain the user's input data and determine whether to continue to perform the predetermined operation for the application based on the input data. For example, a request confirmation indication is generated by running the first sub-script data, and the request confirmation indication is sent to the terminal. Then, the input data of the user inputted through the terminal for the request confirmation indication is received, so as to determine whether to continue to run the second sub-script data to implement the predetermined operation for the application based on the input data. It can be seen that through the technical solution of the embodiment of the present disclosure, it is possible to interact with the user in the process of performing the predetermined operation for the application, so that the user can control the execution process of the predetermined operation by inputting data, thereby improving the flexibility of performing the predetermined operation for the application.

[0059] Figure 3 The flowchart of a data processing method for an application according to another embodiment of the present disclosure is schematically shown.

[0060] like Figure 3 As shown, the method of the embodiment of the present disclosure may include, for example, operations S210 to S250 and the following operations S310 to S320.

[0061] In the disclosed embodiments, for example, the running process of the target script data can be controlled by a parent process. For example, when the target script data includes multiple sub-script data, multiple sub-processes can be created in sequence by the parent process to run the multiple sub-script data. For example, when the multiple sub-script data include sub-script data 1, sub-script data 2, and sub-script data 3, the parent process, for example, first creates sub-process 1 to run sub-script data 1. When sub-script data 1 is finished running, the parent process can continue to create sub-process 2 to run sub-script data 2. When sub-script data 2 is finished running, the parent process can continue to create sub-process 3 to run sub-script data 3.

[0062] In operation S310, a first child process is created by a parent process.

[0063] According to an embodiment of the present disclosure, the operation S220 regarding running the first sub-script data may include, for example: running the first sub-script data through a first sub-process and generating a request confirmation indication.

[0064] Next, in operation S320, an interactive channel between the first sub-process and the terminal input window is created.

[0065] According to an embodiment of the present disclosure, the above operation S230 regarding obtaining the user's input data for the request confirmation indication may, for example, include: obtaining the user's input data for the request confirmation indication via the interactive channel through the first sub-process, where the input data is data entered by the user through the terminal input window.

[0066] For example, when the first sub-script data is run to generate a request confirmation indication, the generated request confirmation indication is sent to the terminal, and the user can input data for the request confirmation indication through the terminal input window, and the first sub-process can obtain the user's input data from the terminal input window via the interactive channel.

[0067] According to an embodiment of the present disclosure, creating an interactive channel between the first sub-process and the terminal input window may include at least one of the following methods (1) to (2).

[0068] (1) Run the target data in the first sub-script data to create an interactive channel.

[0069] For example, relevant target data is configured in the first sub-script data, and the target data may be, for example, a program statement or a related function. The first sub-script data may include, for example, pre-uninstallation script data. For example, before starting to uninstall the application, the first sub-script data is first run. When the target data in the first sub-script data is run, an interactive channel between the first sub-process and the terminal input window may be created, so that the first sub-process can obtain input data input by the user through the terminal input window through the interactive channel.

[0070] (2) Running the first sub-script data to call the target program to create an interactive channel. The target program is, for example, a program independent of the first sub-script data, and the first sub-script data includes, for example, calling information. When the calling information of the first sub-script data is run, the target program can be called to create an interactive channel using the target program.

[0071] According to an embodiment of the present disclosure, the second sub-script data may include, for example, script data during uninstallation and script data after uninstallation. When the script data during uninstallation is executed, it may indicate that the application is being uninstalled. The script data after uninstallation may include, for example, data required for performing related configuration operations after uninstallation of the application. For example, when the script data after uninstallation is executed, it may indicate that the application has been uninstalled and related configuration operations after uninstallation are being performed. For example, when the user's input data indicates that the application needs to be uninstalled continuously, the second sub-script data may be continued to be executed to uninstall the application.

[0072] According to an embodiment of the present disclosure, the above operation S240 regarding determining whether to run the second sub-script data based on the input data may, for example, include: obtaining verification data, determining whether the input data is consistent with the verification data to obtain a verification result, and determining whether to run the second sub-script data based on the verification result.

[0073] If the verification result indicates that the input data is consistent with the verification data, the second sub-script data may be executed. If the verification result indicates that the input data is inconsistent with the verification data, the execution of the second sub-script data may be prohibited.

[0074] The verification data may be, for example, a pre-stored correct uninstall password. If the user input data includes the uninstall password, the uninstall password input by the user may be compared with the pre-stored uninstall password. If they are consistent, it indicates that the user has the authority to uninstall the application, and the second sub-script data may be continued to be run to uninstall the application. If they are inconsistent, it indicates that the user does not have the authority to uninstall the application, and the second sub-script data may be prohibited from being run to stop uninstalling the application.

[0075] According to an embodiment of the present disclosure, in the above operation S250, in response to determining to run the second sub-script data, running the second sub-script data, for example, includes: in response to determining to run the second sub-script data, creating a second child process through the parent process, and running the second sub-script data through the second child process.

[0076] According to an embodiment of the present disclosure, when the verification result indicates that the input data is inconsistent with the verification data, the second sub-script data is prohibited from being executed. For example, the parent process may be terminated to prohibit the parent process from creating a second sub-process for executing the second sub-script data.

[0077] It can be understood that the embodiment of the present disclosure creates an interactive channel between the first child process and the terminal input window, so that the first child process can obtain the input data of the user in the terminal input window through the interactive channel, so as to determine whether to prohibit the execution of the second child script data based on the input data. When it is necessary to prohibit the execution of the second child script data, the parent process can be terminated to realize the execution process of terminating the predetermined operation, so that the user can terminate the execution of the predetermined operation as needed during the execution of the predetermined operation, thereby improving the flexibility of the program uninstallation process.

[0078] Figure 4 A block diagram of a data processing device for an application according to an embodiment of the present disclosure is schematically shown.

[0079] like Figure 4 As shown, the data processing device 400 for an application may include, for example, a first acquisition module 410 , a generation module 420 , a second acquisition module 430 , a determination module 440 and an execution module 450 .

[0080] The first acquisition module 410 may be used to acquire target script data, wherein the target script data includes data required for executing a predetermined operation on the application, and the target script data includes first sub-script data and second sub-script data. Figure 2 The operation S210 described above will not be described in detail here.

[0081] The generation module 420 may be used to run the first sub-script data to generate a request confirmation indication. According to an embodiment of the present disclosure, the generation module 420 may, for example, execute the above reference Figure 2 The operation S220 described above will not be described in detail here.

[0082] The second acquisition module 430 may be used to acquire the input data of the user for the request confirmation indication. According to the embodiment of the present disclosure, the second acquisition module 430 may, for example, execute the above reference Figure 2 The operation S230 described above will not be described in detail here.

[0083] The determination module 440 may be used to determine whether to execute the second sub-script data based on the input data. According to an embodiment of the present disclosure, the determination module 440 may, for example, execute the above reference Figure 2 The operation S240 described above will not be described in detail here.

[0084] The running module 450 may be used to execute the second sub-script data in response to determining to execute the second sub-script data, so as to perform a predetermined operation on the application. According to an embodiment of the present disclosure, the running module 450 may, for example, execute the above reference Figure 2 The operation S250 described above will not be described in detail here.

[0085] Figure 5 A block diagram schematically shows a data processing device for an application according to another embodiment of the present disclosure.

[0086] like Figure 5 As shown, the data processing device 500 for the application may include, for example, a first acquisition module 410, a generation module 420, a second acquisition module 430, a determination module 440, an operation module 450, a first creation module 510, and a second creation module 520. The first acquisition module 410, the generation module 420, the second acquisition module 430, the determination module 440, and the operation module 450 are, for example, the same as those in the above reference Figure 4 The modules described are the same or similar and will not be described in detail here.

[0087] The first creation module 510 may be used to create a first child process through a parent process. According to an embodiment of the present disclosure, the first creation module 510 may, for example, execute the above reference Figure 3 The operation S310 described above will not be described in detail here.

[0088] According to an embodiment of the present disclosure, running the first sub-script data includes: running the first sub-script data through a first sub-process.

[0089] The second creation module 520 may be used to create an interactive channel between the first sub-process and the terminal input window. According to an embodiment of the present disclosure, the second creation module 520 may, for example, execute the above reference Figure 3 The operation S320 described above will not be described in detail here.

[0090] According to an embodiment of the present disclosure, obtaining input data of a user in response to a request confirmation indication includes: obtaining input data through an interactive channel through a first subprocess, wherein the input data is data input by the user through a terminal input window.

[0091] According to an embodiment of the present disclosure, creating an interactive channel between the first sub-process and the terminal input window includes at least one of the following: running target data in the first sub-script data to create an interactive channel, and running the first sub-script data to call the target program to create the interactive channel.

[0092] According to an embodiment of the present disclosure, determining whether to execute the second sub-script data based on the input data includes: obtaining verification data, determining whether the input data is consistent with the verification data to obtain a verification result, and determining whether to execute the second sub-script data based on the verification result.

[0093] According to an embodiment of the present disclosure, the apparatus 400 or the apparatus 500 further includes: a prohibition module, which prohibits the execution of the second sub-script data in response to the verification result indicating that the input data is inconsistent with the verification data.

[0094] According to an embodiment of the present disclosure, prohibiting the second sub-script data from being executed includes: terminating a parent process so as to prohibit the parent process from creating a second sub-process for executing the second sub-script data.

[0095] According to an embodiment of the present disclosure, in response to determining to run the second sub-script data, running the second sub-script data includes: in response to determining to run the second sub-script data, creating a second sub-process through a parent process, and running the second sub-script data through the second sub-process.

[0096] According to an embodiment of the present disclosure, running the first sub-script data includes: running the first sub-script data in a target operating system environment. Running the second sub-script data includes: running the second sub-script data in a target operating system environment. Wherein, the target operating system environment includes a Linux operating system environment.

[0097] According to an embodiment of the present disclosure, the present disclosure also provides a computing device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute Figure 2-3 The method described in .

[0098] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or by any one of the three implementation methods of software, hardware, and the same parts, or by a suitable combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0099] For example, any of the first acquisition module 410, the generation module 420, the second acquisition module 430, the determination module 440 and the operation module 450, the first creation module 510 and the second creation module 520 can be combined in one module for implementation, or any of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 410, the generation module 420, the second acquisition module 430, the determination module 440 and the operation module 450, the first creation module 510 and the second creation module 520 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, at least one of the first acquisition module 410, the generation module 420, the second acquisition module 430, the determination module 440, the operation module 450, the first creation module 510 and the second creation module 520 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.

[0100] Figure 6 A block diagram of a computer system suitable for data processing for an application according to an embodiment of the present disclosure is schematically shown. Figure 6The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0101] like Figure 6 As shown, the computer system 600 according to the embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0102] In RAM 603, various programs and data required for the operation of system 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other through bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0103] According to an embodiment of the present disclosure, the system 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The system 600 may further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0104] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0105] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0106] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0107] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603 .

[0108] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0109] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0110] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data processing method for an application, comprising: Acquire target script data, wherein the target script data includes data required for executing a predetermined operation on the application, and the target script data includes first sub-script data and second sub-script data; Running the first child script data through a first child process to generate a request confirmation indication, wherein the first child process is created by a parent process, and the parent process is used to control the running of the target script data; Creating an interactive channel between the first subprocess and the terminal input window; Acquiring input data through the interactive channel by the first subprocess, wherein the input data is data input by a user through the terminal input window; Based on the input data, determining whether to execute the second sub-script data; In response to determining to execute the second child script data, creating a second child process through the parent process; and Run the second sub-script data through the second sub-process; The step of creating an interactive channel between the first subprocess and the terminal input window includes at least one of the following: Running the target data in the first sub-script data to create the interactive channel; and The first sub-script data is run to call the target program to create the interactive channel.

2. The method according to claim 1, wherein: The determining whether to execute the second sub-script data based on the input data comprises: Get verification data; determining whether the input data is consistent with the verification data to obtain a verification result; and Based on the verification result, it is determined whether to execute the second sub-script data.

3. The method according to claim 2, further comprising: In response to the verification result indicating that the input data is inconsistent with the verification data, the execution of the second sub-script data is prohibited.

4. The method according to claim 3, wherein: The data for prohibiting the execution of the second sub-script includes: The parent process is terminated to prohibit the parent process from creating a second child process for executing the second child script data.

5. The method according to claim 1, wherein: The running of the first sub-script data comprises: running the first sub-script data in a target operating system environment; The running of the second sub-script data comprises: running the second sub-script data in a target operating system environment; Wherein, the target operating system environment includes a Linux operating system environment.

6. A data processing device for an application, comprising: A first acquisition module acquires target script data, wherein the target script data includes data required for executing a predetermined operation on the application, and the target script data includes first sub-script data and second sub-script data; A generating module, running the first child script data through a first child process, and generating a request confirmation indication, wherein the first child process is created by a parent process, and the parent process is used to control the running of the target script data; Creating a module to create an interactive channel between the first sub-process and the terminal input window; A second acquisition module, which acquires input data through the first sub-process via the interactive channel, wherein the input data is data input by a user through the terminal input window; a determination module, which determines whether to execute the second sub-script data based on the input data; and A first running module, in response to determining to run the second sub-script data, creates a second child process through the parent process; and A second running module, running the second sub-script data through the second sub-process; The creation module includes at least one of the following: Running the target data in the first sub-script data to create the interactive channel; and The first sub-script data is run to call the target program to create the interactive channel.

7. A computing device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 5.

9. A computer program product, comprising computer executable instructions, wherein the instructions are used to implement the method according to any one of claims 1 to 5 when executed.