CN114691238A - Script file execution method, device, equipment, storage medium and program product - Google Patents
Script file execution method, device, equipment, storage medium and program product Download PDFInfo
- Publication number
- CN114691238A CN114691238A CN202210335749.6A CN202210335749A CN114691238A CN 114691238 A CN114691238 A CN 114691238A CN 202210335749 A CN202210335749 A CN 202210335749A CN 114691238 A CN114691238 A CN 114691238A
- Authority
- CN
- China
- Prior art keywords
- server
- executed
- data
- operation instruction
- target file
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44589—Program code verification, e.g. Java bytecode verification, proof-carrying code
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure provides a script file execution method, a script file execution device, a script file execution equipment, a script file storage medium and a program product, and relates to the technical field of computers, in particular to the technical field of automation. The specific implementation scheme is as follows: receiving initial data, the initial data comprising: the second server accesses the information and the first path data of the target file at the first server; determining content data of the target file according to the first path data; generating a script program to be executed by a second server according to the content data and the initial data; and sending an operation instruction to the second server, wherein the operation instruction is used for verifying the access information of the second server and triggering the second server to-be-executed script program to execute.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for executing a script file.
Background
With the development of computer technology, various aspects of production and life are gradually automated. However, in application scenarios including software development, for example, there are still some tasks that need to be performed manually.
Disclosure of Invention
The present disclosure provides a script file execution method, apparatus, device, storage medium, and program product.
According to an aspect of the present disclosure, there is provided a script file execution method including: receiving initial data, the initial data comprising: the second server accesses the information and the first path data of the target file at the first server; determining content data of the target file according to the first path data; generating a script program to be executed by a second server according to the content data and the initial data; and sending an operation instruction to the second server, wherein the operation instruction is used for verifying the access information of the second server and triggering the second server to execute the script program.
According to another aspect of the present disclosure, there is provided a script file executing apparatus including: the device comprises an initial data receiving module, a content data determining module, a generating module and an operation instruction sending module. An initial data receiving module, configured to receive initial data, where the initial data includes: the second server accesses the information and the first path data of the target file at the first server; the content data determining module is used for determining the content data of the target file according to the first path data; the generating module is used for generating a script program to be executed by the second server according to the content data and the initial data; and the operation instruction sending module is used for sending an operation instruction to the second server, and the operation instruction is used for verifying the access information of the second server and triggering the second server to-be-executed script program to execute.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor and a memory communicatively coupled to the at least one processor. Wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the disclosed embodiments.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method of an embodiment of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 schematically illustrates a system architecture diagram of a script file execution method and apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a script file execution method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of a script file execution method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating an operation performed by a script program to be executed by a second server according to an embodiment of the present disclosure;
fig. 5 schematically shows a block diagram of a script file executing apparatus according to yet another embodiment of the present disclosure; and
fig. 6 schematically shows a block diagram of an electronic device that may implement the script file execution method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
With the development of computer technology and internet technology, various aspects of production and life are gradually being automated. However, in application scenarios including, for example, software development, there are still some jobs that need to be done manually.
Taking software development as an example, the following situations exist: a developer writes a script file for performing certain operations at a local server, and the script file is executed at another server. For example, some business requirements need to acquire data stored in the cloud server, and a developer can write a script file for automatically acquiring the data in the local server, log in the cloud server after authorization, copy and execute the script file in the cloud server, and automatically acquire related data.
In some embodiments, the script file of the local server is manually copied to another server and executed at the other server.
Fig. 1 schematically shows a system architecture of a script file execution method and apparatus according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to the embodiment may include a first server 101, a second server 102, and a network 103. The network 103 is used to provide a medium of a communication link between the first server 101 and the second server 102. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The first server 101 and the second server 102 may be servers providing various services, such as a background management server (for example only) providing support for a website browsed by a user using a client. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the client. In addition, the first service end 101 and the second service end 102 may also be cloud servers, that is, the first service end 101 and the second service end 102 have a cloud computing function.
It should be noted that the script file execution method provided by the embodiment of the present disclosure may be executed by the first service end 101. Accordingly, the script file executing apparatus provided by the embodiment of the present disclosure may be disposed in the first service end 101. The script file execution method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the first server 101 and is capable of communicating with the client and/or the second server 102. Accordingly, the script file executing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the first server 101 and capable of communicating with the client and/or the second server 102.
In one example, the first service 101 may receive initial data.
It should be understood that the number of first servers, second servers, and networks in fig. 1 is merely illustrative. There may be any number of first service ends, second service ends, and networks, as desired for implementation.
It should be noted that in the technical solution of the present disclosure, the processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user are all in compliance with the regulations of the relevant laws and regulations, and do not violate the customs of the public order.
In the technical scheme of the disclosure, before the personal information of the user is acquired or collected, the authorization or the consent of the user is acquired.
The embodiment of the present disclosure provides a script file execution method, and the following describes a script file execution method according to an exemplary embodiment of the present disclosure with reference to fig. 2 to 4 in conjunction with the system architecture of fig. 1. The script file execution method of the embodiment of the present disclosure may be executed by the first server 101 shown in fig. 1, for example.
FIG. 2 schematically shows a flowchart of a script file execution method according to an embodiment of the present disclosure.
As shown in fig. 2, the script file executing method 200 of the embodiment of the present disclosure may include, for example, operations S210 to S240.
In operation S210, initial data is received.
The initial data includes: and the second server accesses the information and the first path data of the target file at the first server.
Illustratively, the initial data may be in the form of instructions, for example, the specific content of the instructions includes: and the second server accesses the information and the first path data of the target file at the first server.
The target file can be understood as a file which is generated at a first service end and executed at a second service end so as to meet relevant requirements. For example, the target file is executed at the second server, and the data of the second server can be acquired.
It can be understood that, by using the first path data of the target file at the first service end, the storage location of the target file at the first service end can be determined. And the second server side can be accessed by utilizing the second server side access information.
In operation S220, content data of the target file is determined according to the first path data.
It can be understood that, by using the first path data of the target file at the first service end, the storage location of the target file at the first service end may be determined, and then the content data of the target file may be determined.
In operation S230, a script program to be executed by the second server is generated according to the content data and the initial data.
The script program to be executed by the second server can be understood as a script program automatically executed at the second server.
In operation S240, an operation instruction is sent to the second server, where the operation instruction is used to verify the access information of the second server and trigger the second server to execute the script program.
In the script execution method of the embodiment of the disclosure, the initial data provides the first path data of the target file at the first service end and the access information of the second service end. On the basis, the operation instruction can be sent to the second server, so that the second server can execute the script program to be executed by the second server by executing the operation instruction, and the script program to be executed by the second server can automatically execute related operations including executing the target file at the second server, so that the target file can be automatically executed at the second server, the target file does not need to be manually copied and executed, errors are not easy to occur, the accuracy is high, and the execution efficiency is higher. For example, the object file is used for downloading data, and the script file executing method according to the embodiment of the disclosure may automatically execute the object file at the second server to download the related data of the second server.
FIG. 3 schematically shows a schematic diagram of a script file execution method 300 according to an embodiment of the present disclosure.
As shown in FIG. 3, the script file executing method 300 according to the embodiment of the present disclosure includes operations S310 to S340.
In operation S310, initial data is received.
The initial data includes: the second server accesses the information 302 and the first path data 301 of the target file at the first server.
In operation S320, content data 303 of the target file is determined according to the first path data 301.
In operation S330, a second server to-be-executed script program 304 is generated according to the content data 303 and the initial data.
In operation S340, an operation instruction is sent to the second server, where the operation instruction is used to verify the access information of the second server and trigger the second server to execute the script program.
According to another embodiment of the present disclosure, the initial data may further include a to-be-executed instruction of the second server and second path data of the second server corresponding to the target file.
As shown in fig. 4, the script program to be executed by the second server may be used to perform the following operations S41 to S44.
In operation S41, a target location of the target file at the second server is determined according to the second path data.
In operation S42, a second server object file is created at the object location.
In operation S43, the content data is written to the second server object file whose creation was successful.
In operation S44, a second server to-be-executed instruction is executed, where the second server to-be-executed instruction is used to execute a second server target file.
It is understood that, by using the second path data, the storage location of the target file in the second server after being copied to the second server can be determined.
It should be noted that whether the target location successfully creates the second server object file affects whether the instruction to be executed by the second server can be successfully executed, so in operation S42, the second server object file is created at the target location. In the case where the target location has successfully created the second server target file, operation S42 may not be performed.
In the script file executing method of the embodiment of the disclosure, the script program to be executed by the second server may be used to execute the relevant operation at the second server, and includes not only executing the instruction to be executed by the second server for executing the target file of the second server, but also some necessary operations that the target file may execute at the second server, such as creating the target file of the second server and writing the data of the target file into the target file of the second server that is successfully created. The manual operation of related personnel is not needed, the operation error rate can be reduced, and the efficiency is improved.
Illustratively, according to the script file execution method of the embodiment of the present disclosure, sending the operation instruction to the second server may include: and sending an operation instruction to an interface of a second service end for executing the instruction according to a request-response protocol, or taking the first service end as a local service end and sending the operation instruction to the second service end at the local service end.
According to the script file execution method disclosed by the embodiment of the disclosure, two modes of sending the operation instruction to the second server are provided, and related personnel can select any one of the sending modes according to requirements.
Taking the first service end as a local service end, sending an operation instruction to the second service end at the local service end may include: at the local server, an ssh terminal (secure shell protocol) is used to send an operation instruction to the second server by using a secure shell protocol (the protocol is a secure protocol established on an application basis) after encrypting a data packet to be transmitted by using a data packet encryption technology and transmitting the encrypted data packet to a network), so as to ensure the security of accessing the second server through the internet.
Illustratively, when the operation instruction is sent to the interface of the second server for executing the instruction according to the request-response Protocol, the request-response Protocol may include, for example, an HTTP Protocol (HTTP, hypertext Transfer Protocol).
Illustratively, according to the script file executing method of the embodiment of the present disclosure, the second server access information may include at least one of: the second server side identification, the second server side login account and the second server side login password.
In the script file execution method of the embodiment of the disclosure, the script to be executed by the second server can be executed only when the second server logs in. And logging in the second server only after the second server access information is verified successfully, the second server can be logged in.
For example, when the first server and the second server trust each other, the second server login password may not be needed.
Illustratively, according to the script file execution method of an embodiment of the present disclosure, the object file may include an object script program.
Scripts are executable files written according to a certain format using a particular descriptive language. According to the script file execution method, the target script program can be automatically executed under the triggering of the relevant instruction through the target script program, corresponding operation is completed, and efficiency is higher. Particularly, the method can perform repeated and fussy operations, and has higher accuracy and higher efficiency.
It should be noted that the target file may also be another executable file.
Fig. 5 schematically shows a block diagram of a script file executing apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the script file executing apparatus 500 of the embodiment of the present disclosure includes, for example, an initial data receiving module 510, a content data determining module 520, a generating module 530, and an operation instruction transmitting module 540.
An initial data receiving module 510, configured to receive initial data, where the initial data includes: and the second server accesses the information and the first path data of the target file at the first server.
A content data determining module 520, configured to determine content data of the target file according to the first path data.
And a generating module 530, configured to generate a script program to be executed by the second server according to the target data and the initial data.
And the operation instruction sending module 540 is configured to send an operation instruction to the second server, where the operation instruction is used to verify the access information of the second server and trigger the second server to execute the script program to be executed.
According to the script file executing apparatus of the embodiment of the present disclosure, the initial data may further include a second server to-be-executed instruction and second path data of the second server corresponding to the target file. The script program to be executed by the second server may be configured to perform the following operations: determining the target position of the target file at the second server according to the second path data; creating a second server target file at the target position; writing the content data into a second server target file which is successfully created; and executing a second server to-be-executed instruction, wherein the second server to-be-executed instruction is used for executing a second server target file.
According to the script file executing apparatus of the embodiment of the present disclosure, the operation instruction sending module may include: the first sending submodule of the operation instruction or the second sending submodule of the operation instruction.
And the first sending submodule of the operating instruction is used for sending the operating instruction to an interface for executing the instruction of the second server side according to the request-response protocol.
And the second operation instruction sending submodule is used for taking the first service end as a local service end and sending the operation instruction to the second service end at the local service end.
According to the script file executing apparatus of the embodiment of the present disclosure, the second server access information may include at least one of: the second server side identification, the second server side login account and the second server side login password.
According to the script file executing apparatus of the embodiment of the present disclosure, the object file may include an object script program.
It should be understood that the embodiments of the apparatus part of the present disclosure are the same as or similar to the embodiments of the method part of the present disclosure, and the technical problems to be solved and the technical effects to be achieved are also the same as or similar to each other, and the detailed description of the present disclosure is omitted.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the device 600 comprises a computing unit 601, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 executes the respective methods and processes described above, such as a script file execution method. For example, in some embodiments, the script file execution method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the script file execution method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the script file execution method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.
Claims (13)
1. A script file execution method, comprising:
receiving initial data, the initial data comprising: the second server accesses the information and the first path data of the target file at the first server;
determining content data of a target file according to the first path data;
generating a script program to be executed by a second server according to the content data and the initial data; and
and sending an operation instruction to the second server, wherein the operation instruction is used for verifying the access information of the second server and triggering the second server to-be-executed script program to execute.
2. The method of claim 1, wherein the initial data further comprises a second server to-be-executed instruction and second path data of the second server corresponding to the target file; the script program to be executed by the second server is used for executing the following operations:
determining the target position of the target file at the second server according to the second path data;
creating a second server end target file at the target position;
writing the content data into the second server target file which is successfully created; and
and executing the second server to-be-executed instruction, wherein the second server to-be-executed instruction is used for executing the second server target file.
3. The method of claim 1 or 2, wherein the sending the operation instruction to the second server comprises:
the operation instruction is sent to an interface of the second server for executing the instruction according to a request-response protocol, or
And taking the first server as a local server, and sending the operation instruction to the second server at the local server.
4. The method of claim 1 or 2, wherein the second server access information comprises at least one of: the second server side identification, the second server side login account and the second server side login password.
5. A method according to claim 1 or 2, wherein the object file comprises an object script program.
6. A script file execution apparatus comprising:
an initial data receiving module, configured to receive initial data, where the initial data includes: the second server accesses the information and the first path data of the target file at the first server;
the content data determining module is used for determining the content data of the target file according to the first path data;
the generating module is used for generating a script program to be executed by a second server according to the content data and the initial data; and
and the operation instruction sending module is used for sending an operation instruction to the second server, wherein the operation instruction is used for verifying the access information of the second server and triggering the second server to execute the script program to be executed.
7. The device of claim 6, wherein the initial data further comprises a second server to-be-executed instruction and second path data of the second server corresponding to the target file; the script program to be executed by the second server is used for executing the following operations:
determining the target position of the target file at the second server according to the second path data;
creating a second server end target file at the target position;
writing the content data into the second server target file which is successfully created; and
and executing the second server to-be-executed instruction, wherein the second server to-be-executed instruction is used for executing the second server target file.
8. The apparatus according to claim 6 or 7, wherein the operation instruction transmitting module comprises:
an operation instruction first sending submodule, configured to send the operation instruction to an interface of the second server according to a request-response protocol, or
And the second sending submodule of the operation instruction is used for taking the first server as a local server and sending the operation instruction to the second server at the local server.
9. The apparatus of claim 6 or 7, wherein the second server access information comprises at least one of: the second server side identification, the second server side login account and the second server side login password.
10. The apparatus of claim 6 or 7, wherein the object file comprises an object script program.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210335749.6A CN114691238A (en) | 2022-03-30 | 2022-03-30 | Script file execution method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210335749.6A CN114691238A (en) | 2022-03-30 | 2022-03-30 | Script file execution method, device, equipment, storage medium and program product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114691238A true CN114691238A (en) | 2022-07-01 |
Family
ID=82140246
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210335749.6A Withdrawn CN114691238A (en) | 2022-03-30 | 2022-03-30 | Script file execution method, device, equipment, storage medium and program product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114691238A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120030272A1 (en) * | 2010-07-27 | 2012-02-02 | International Business Machines Corporation | Uploading and Executing Command Line Scripts |
| US20170052776A1 (en) * | 2015-08-21 | 2017-02-23 | Tata Consultancy Services Limited | Computer implemented method and system for automatically deploying and versioning scripts in a computing environment |
| CN107688538A (en) * | 2017-08-31 | 2018-02-13 | 北京蓝海讯通科技股份有限公司 | A kind of script execution, device and computing device |
| CN110569085A (en) * | 2019-08-15 | 2019-12-13 | 上海易点时空网络有限公司 | configuration file loading method and system |
| CN113110864A (en) * | 2021-03-19 | 2021-07-13 | 深圳市腾讯网络信息技术有限公司 | Application program updating method and device and storage medium |
| CN113190362A (en) * | 2021-04-22 | 2021-07-30 | 北京达佳互联信息技术有限公司 | Service calling method and device, computer equipment and storage medium |
-
2022
- 2022-03-30 CN CN202210335749.6A patent/CN114691238A/en not_active Withdrawn
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120030272A1 (en) * | 2010-07-27 | 2012-02-02 | International Business Machines Corporation | Uploading and Executing Command Line Scripts |
| US20170052776A1 (en) * | 2015-08-21 | 2017-02-23 | Tata Consultancy Services Limited | Computer implemented method and system for automatically deploying and versioning scripts in a computing environment |
| CN107688538A (en) * | 2017-08-31 | 2018-02-13 | 北京蓝海讯通科技股份有限公司 | A kind of script execution, device and computing device |
| CN110569085A (en) * | 2019-08-15 | 2019-12-13 | 上海易点时空网络有限公司 | configuration file loading method and system |
| CN113110864A (en) * | 2021-03-19 | 2021-07-13 | 深圳市腾讯网络信息技术有限公司 | Application program updating method and device and storage medium |
| CN113190362A (en) * | 2021-04-22 | 2021-07-30 | 北京达佳互联信息技术有限公司 | Service calling method and device, computer equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| NDMIAO: "利用rsync写脚本实现多节点多服务器文件一键同步", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/qq_40851534/article/details/122441324> * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11301357B1 (en) | Method to check application programming interface correctness in software | |
| CN110765422A (en) | Parameter checking method and device | |
| US10963370B2 (en) | Default mock implementations at a server | |
| US20180315024A1 (en) | Systems and Methods Enabling Secure Transactions from Terminal Window | |
| US20200314159A1 (en) | Anomaly detection for streaming data | |
| CN113778725B (en) | A data verification method and device | |
| CN110059064B (en) | Log file processing method and device and computer readable storage medium | |
| CN113312900A (en) | Data verification method and device | |
| CN107403112B (en) | Data verification method and device thereof | |
| CN113515462B (en) | Method, apparatus, device and storage medium for testing | |
| CN109614319B (en) | Automated testing method, apparatus, electronic device and computer readable medium | |
| CN109299124B (en) | Method and apparatus for updating a model | |
| CN112131092A (en) | Page debugging method and device | |
| CN111787041B (en) | Method and device for processing data | |
| CN112559024A (en) | Method and device for generating transaction code change list | |
| US20230088655A1 (en) | Automatic non-code test suite generation from api specification | |
| CN113254340B (en) | A method and device for generating test cases | |
| CN115344330A (en) | Data transmission method and device, application processing method and device, and electronic device | |
| CN112084114B (en) | Method and apparatus for testing interfaces | |
| CN108628909B (en) | Information pushing method and device | |
| CN114625458A (en) | Page data processing method and device, electronic equipment and storage medium | |
| CN113946816A (en) | Cloud service-based authentication method and device, electronic equipment and storage medium | |
| CN114691238A (en) | Script file execution method, device, equipment, storage medium and program product | |
| CN113010365A (en) | System running state monitoring method, system running state detection device, electronic equipment and storage medium | |
| CN113746661B (en) | A business processing method and device |
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 | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220701 |