CN114356448A - Object control method, device, equipment and medium - Google Patents

Object control method, device, equipment and medium Download PDF

Info

Publication number
CN114356448A
CN114356448A CN202111624863.2A CN202111624863A CN114356448A CN 114356448 A CN114356448 A CN 114356448A CN 202111624863 A CN202111624863 A CN 202111624863A CN 114356448 A CN114356448 A CN 114356448A
Authority
CN
China
Prior art keywords
target
target script
script
controlled object
suite
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111624863.2A
Other languages
Chinese (zh)
Inventor
仁青桑布
王波
蒋品
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Beijing Guangqiyuan Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Guangqiyuan Digital Technology Co ltd filed Critical Beijing Guangqiyuan Digital Technology Co ltd
Priority to CN202111624863.2A priority Critical patent/CN114356448A/en
Publication of CN114356448A publication Critical patent/CN114356448A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the specification discloses an object control method, an object control device, object control equipment and a medium, wherein the object control method comprises the following steps: acquiring a target suite and a target script; the target suite is used for providing a running environment for the target script; installing the target suite and executing the target script; wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.

Description

Object control method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for object control.
Background
In the prior art, one or more operations may be required on one or more pieces of equipment. At present, all the operations need to be manually carried out, and the operation efficiency is low.
In view of the above, a more efficient operation execution scheme is needed.
Disclosure of Invention
The embodiment of the specification provides an object control method, an object control device, an object control apparatus and an object control medium, which are used for solving the technical problem of how to more efficiently control or operate an object.
In order to solve the above technical problem, the embodiments of the present specification provide the following technical solutions:
an embodiment of the present specification provides an object control method, including:
acquiring a target suite and a target script; the target suite is used for providing a running environment for the target script;
installing the target suite and executing the target script;
wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.
Optionally, determining a controlled object according to the target script, and executing an operation defined by the target script on the controlled object, including:
determining each controlled object according to the target script, and determining the operation corresponding to each controlled object defined by the target script;
and executing the operation corresponding to the controlled object for any controlled object.
Optionally, executing the target script further includes:
and determining the time for executing the operation defined by the target script on the controlled object according to the time information contained in the target script.
Optionally, determining the controlled object according to the target script includes:
determining a controlled object according to the IP address information or the port information contained in the target script;
or the like, or, alternatively,
and determining the controlled object according to the user account contained in the target script.
Optionally, the target script includes a user account and a password of the user account;
executing the operation defined by the target script on the controlled object comprises:
and logging in the user account by using the password, and executing the operation defined by the target script on the user account.
Optionally, the obtaining the target suite and the target script includes:
acquiring a target suite and a target script from a terminal; wherein the object suite and the object script are generated by the terminal configuration.
Optionally, the generating the target suite and the target script through the terminal configuration includes:
and the terminal displays a configuration page and generates the target suite and the target script according to the operation data of the configuration page.
An embodiment of the present specification provides an object control apparatus, including:
the preparation module is used for acquiring the target suite and the target script; the target suite is used for providing a running environment for the target script;
the execution module is used for installing the target suite and executing the target script;
wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.
An embodiment of the present specification provides an object control apparatus, including:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the object control method described above.
The present specification provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the object control method is implemented.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the technical scheme can automatically determine the controlled object, automatically execute the operation defined by the target script on the controlled object, and improve the operation execution efficiency on the controlled object.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments of the present specification or the prior art will be briefly described below. It should be apparent that the drawings described below are only some of the drawings to which the embodiments described in the present specification may relate, and that other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic diagram of an execution subject of an object control method in the first embodiment of the present specification.
Fig. 2 is a flowchart illustrating an object control method in the first embodiment of the present specification.
Fig. 3 is a schematic structural diagram of an object control device in a second embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings of the embodiments of the present specification. It is to be understood that the embodiments described herein are only some embodiments of the application and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
In the prior art, one or more operations, such as login operation, password change operation and the like, may be required to be performed on one or more devices. At present, the above operations are manually performed, that is, each operation is manually performed for each device. For example, if the encryption operation needs to be performed on a plurality of devices, the encryption operation needs to be manually performed on each device. It can be seen that the prior art is inefficient in performing operations on equipment.
A first embodiment (hereinafter referred to as "embodiment one") of this specification provides an object control method, and an execution subject of the embodiment one may be a terminal (including but not limited to a mobile phone, a computer, a pad, a television), or a server, or an operating system, or an application program, or an object control platform, or an object control system, and the like, that is, the execution subject may be various and may be set, used, or changed as needed. In addition, a third party application may assist the execution principal in executing embodiment one. For example, as shown in fig. 1, the object control method in the first embodiment may be executed by a server, and an application program (corresponding to the server) may be installed on a terminal (held by a user), and data transmission may be performed between the terminal or the application program and the server, and data collection or input or output or page or information processing may be performed by the terminal or the application program, so as to assist the server in executing the object control method in the first embodiment.
As shown in fig. 2, an object control method according to a first embodiment includes:
s101: acquiring a target suite and a target script (an execution main body); the target suite is used for providing a running environment for the target script;
in one embodiment, an object suite and an object script may be constructed. Wherein the target suite is used for providing a running environment for the target script. Specifically, the target suite may be an automated interaction suite, and the target suite may be configured to enable the execution subject of the first embodiment to input a specified character string in an interactive manner when executing a command or a program, so as to implement interactive communication between the execution subject of the first embodiment and other subjects. In an embodiment one, the target suite may be constructed by an expect script.
The native format of the target script can be an exp format, the constructed target script can be an sh format, and the target script can be used in combination with the shell script, so that the execution main body of the first embodiment executes the target script.
In one embodiment, the obtaining the target suite and the target script may include: acquiring an object suite and an object script from a terminal (except the execution main body of the embodiment one); the target suite and the target script are generated through the terminal configuration, that is, the terminal transmits the target suite and the target script to the execution main body of the first embodiment. It should be noted that the terminal for generating the target suite and the terminal for generating the target script may be different terminals.
S103: installing the target suite and executing the target script; wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.
After the execution subject obtains the target suite, the target suite may be installed (that is, the target suite may be in the form of an application), so as to provide a running environment for the execution of the target script.
The execution subject of the first embodiment may execute the object script after installing the object suite. In the first embodiment, there is no absolute precedence relationship between the obtaining of the target suite and the installation of the target suite and the obtaining of the target script, for example, the execution main body of the first embodiment may obtain the target suite and install the target suite first, and then obtain the target script; or the target script can be obtained first, and then the target external member is obtained and installed; or the target suite and the target script can be acquired first and the target suite can be installed.
The executing of the target script by the executing body of the first embodiment may include: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object. Specifically, in the first embodiment, the target script may include various parameters, such as:
1.1, the parameter may include IP address information or port information, that is, the target script may include IP address information or port information. Determining the controlled object according to the target script may include: and determining a controlled object according to the IP address information or the port information contained in the target script, for example, determining a device (for example, a server or a terminal) corresponding to the "IP address information or the port information contained in the target script" as the controlled object, or determining a device having the "IP address information or the port information contained in the target script" as the controlled object.
It should be noted that there may be a plurality of pieces of IP address information or port information, so that a plurality of controlled objects may be determined according to the IP address information or port information included in the target script.
1.2, the parameters may include a user account and a user account password, that is, the target script may include the user account and the user account password. Determining the controlled object according to the target script may include: and determining the controlled object according to the user account contained in the target script, for example, determining the 'user account contained in the target script' as the controlled object.
It should be noted that there may be a plurality of user accounts, so that a plurality of controlled objects may be determined according to the user account included in the target script.
After the controlled object is determined, the execution subject of the first embodiment may determine the operation defined by the target script, and execute the operation defined by the target script on the controlled object.
For example, in 1.1, the controlled object is a device corresponding to a plurality of pieces of IP address information in the target script, and the operation defined by the target script is to acquire the resource indicator, the execution main body in the first embodiment may send an instruction for acquiring the resource indicator (the instruction may be a shell command or a shell script, and thus, as described above, is used in combination with the target script) to each controlled object, so that each controlled object sends its resource indicator to the execution main body in the first embodiment. Of course, the execution main body in the first embodiment may also obtain the resource index of each controlled object in other manners.
For example, in 1.2, the controlled object is a user account, and the operation defined by the target script is to change a password of the controlled object to a specified password (the specified password may be included in the target script and may be a part of the parameters), the execution main body according to the first embodiment logs in the user account in the target script using the user account password in the target script, and executes the operation defined by the target script on the user account, that is, changes the password of the user account to the specified password.
For example, the controlled object is a device corresponding to a plurality of pieces of IP address information in the target script, and the operation defined by the target script is to change the password of the designated user account on the controlled object to the designated password (the designated user account and the designated password may be included in the target script and may be part of the above parameters), the execution main body in the first embodiment may send an instruction (the instruction may include the designated user account and the designated password) to each controlled object, so that each controlled object changes the password of the designated user account to the designated password.
Since one or more controlled objects can be determined according to the object script, in the first embodiment, determining a controlled object according to the object script, and performing the operation defined by the object script on the controlled object may include: determining each controlled object according to the target script, and determining the operation corresponding to each controlled object defined by the target script; and executing the operation corresponding to the controlled object (namely the operation defined by the target script on the controlled object) on any controlled object.
For example, if the target script includes both IP address information or port information and a user account, the execution subject in the first embodiment may determine, as the controlled object, the device corresponding to the "IP address information or port information included in the target script", and determine, as the controlled object, the user account included in the target script. Assuming that the executing agent of the first embodiment determines that the operation defined by the target script on the device (i.e., the operation corresponding to the device) is to acquire log information, and the operation defined by the target script on the user account (i.e., the operation corresponding to the device) is to change the password, the executing agent of the first embodiment may execute the operation of acquiring the log information on the device and execute the encryption change operation on the user account.
For another example, the target script includes a plurality of pieces of IP address information or port information, and the execution main body according to the first embodiment determines a plurality of pieces of equipment corresponding to "the IP address information or the port information included in the target script" as the controlled object. Assuming that the execution subject of the first embodiment determines that the operation defined for the device is to install preset software, the execution subject of the first embodiment may send instructions to the plurality of devices in batch to enable the plurality of devices to install the preset software.
For another example, the target script includes a plurality of pieces of IP address information or port information, and the execution main body according to the first embodiment determines a plurality of pieces of equipment corresponding to "the IP address information or the port information included in the target script" as the controlled object. If the execution subject of the first embodiment determines that the operation defined by the target script for a part of the devices is to obtain the resource indicator, and the operation defined by the other part of the devices is to change the device password (the device original password may be included in the target script), the execution subject of the first embodiment may execute the operation corresponding to any device, and the operations may be executed in batch or simultaneously.
In an embodiment, the parameter may further include time information, that is, the target script may include time information, and the executing body of the embodiment executing the target script may further include: and determining the time for executing the operation defined by the target script on the controlled object according to the time information contained in the target script, so as to execute the operation defined by the target script on the controlled object at the time. If there are multiple controlled objects, the execution main body in the first embodiment may determine, according to the time information included in the target script, a time for executing an operation corresponding to any one of the controlled objects.
In an embodiment one, the target script may include a preset field, where the preset field is used for an execution subject of embodiment one to identify a controlled object from the target script or to define an operation on the controlled object. Of course, the execution subject of the first embodiment may also identify the controlled object or the operation defined on the controlled object from the target script in other manners.
In an embodiment, the generating the target suite and the target script through the terminal configuration may include: and the terminal displays a configuration page and generates the target suite and the target script according to the operation data of the configuration page. For example, the user may select or input the above parameters through the configuration page, the terminal generates operation data of the user on the configuration page, and generates the target script according to the operation data of the user on the configuration page.
In the first embodiment, the controlled object may be automatically determined by the target script, and the operation defined by the target script is automatically executed on the controlled object, so as to implement automatic control on the controlled object, and without manual operation (for example, when the target script is executed by the execution main body in the first embodiment, character input or page operation does not need to be manually performed), thereby improving the execution efficiency of the operation on the controlled object.
In the first embodiment, a plurality of controlled objects can be set through the target script, and corresponding operations are defined for each controlled object, and the execution main body of the first embodiment can execute the operations defined by the target script in batches for the plurality of controlled objects, and does not need to manually execute each operation individually, thereby further improving the operation execution efficiency for the controlled objects.
In the first embodiment, the time for executing the operation on the controlled object can be set through the target script, so that the execution main body of the first embodiment executes the operation at a proper time, and the flexibility of executing the operation on the controlled object is improved, that is, the flexibility of controlling the controlled object is improved.
As shown in fig. 3, a second embodiment of the present disclosure provides an object control apparatus corresponding to the method of the first embodiment, including:
a preparing module 202, configured to obtain an object suite and an object script; the target suite is used for providing a running environment for the target script;
an execution module 204, configured to install the target suite and execute the target script;
wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.
Optionally, determining a controlled object according to the target script, and executing an operation defined by the target script on the controlled object, including:
determining each controlled object according to the target script, and determining the operation corresponding to each controlled object defined by the target script;
and executing the operation corresponding to the controlled object for any controlled object.
Optionally, executing the target script further includes:
and determining the time for executing the operation defined by the target script on the controlled object according to the time information contained in the target script.
Optionally, determining the controlled object according to the target script includes:
determining a controlled object according to the IP address information or the port information contained in the target script;
or the like, or, alternatively,
and determining the controlled object according to the user account contained in the target script.
Optionally, the target script includes a user account and a password of the user account;
executing the operation defined by the target script on the controlled object comprises:
and logging in the user account by using the password, and executing the operation defined by the target script on the user account.
Optionally, the obtaining the target suite and the target script includes:
acquiring a target suite and a target script from a terminal; wherein the object suite and the object script are generated by the terminal configuration.
Optionally, the generating the target suite and the target script through the terminal configuration includes:
and the terminal displays a configuration page and generates the target suite and the target script according to the operation data of the configuration page.
A third embodiment of the present specification provides an object control apparatus including:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the object control method of embodiment one.
A fourth embodiment of the present specification provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the object control method of the first embodiment.
The above embodiments may be used in combination, and the modules having the same name between different embodiments or within the same embodiment may be the same or different modules.
While certain embodiments of the present disclosure have been described above, other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily have to be in the particular order shown or in sequential order to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, device, and non-volatile computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some portions of the description of the method embodiments.
The apparatus, the device, the nonvolatile computer readable storage medium, and the method provided in the embodiments of the present specification correspond to each other, and therefore, the apparatus, the device, and the nonvolatile computer storage medium also have similar advantageous technical effects to the corresponding method.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An object control method, comprising:
acquiring a target suite and a target script; the target suite is used for providing a running environment for the target script;
installing the target suite and executing the target script;
wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.
2. The method of claim 1, wherein determining a controlled object according to the target script and performing the operation defined by the target script on the controlled object comprises:
determining each controlled object according to the target script, and determining the operation corresponding to each controlled object defined by the target script;
and executing the operation corresponding to the controlled object for any controlled object.
3. The method of claim 1, executing the target script further comprising:
and determining the time for executing the operation defined by the target script on the controlled object according to the time information contained in the target script.
4. The method of claim 1, wherein determining a controlled object from the target script comprises:
determining a controlled object according to the IP address information or the port information contained in the target script;
or the like, or, alternatively,
and determining the controlled object according to the user account contained in the target script.
5. The method of claim 1, the target script comprising a user account and a password for the user account;
executing the operation defined by the target script on the controlled object comprises:
and logging in the user account by using the password, and executing the operation defined by the target script on the user account.
6. The method of claim 1, wherein obtaining the target suite and the target script comprises:
acquiring a target suite and a target script from a terminal; wherein the object suite and the object script are generated by the terminal configuration.
7. The method of claim 6, generating the target suite and target script by the terminal configuration comprises:
and the terminal displays a configuration page and generates the target suite and the target script according to the operation data of the configuration page.
8. An object control device comprising:
the preparation module is used for acquiring the target suite and the target script; the target suite is used for providing a running environment for the target script;
the execution module is used for installing the target suite and executing the target script;
wherein executing the target script comprises: and determining a controlled object according to the target script, and executing the operation defined by the target script on the controlled object.
9. An object control device comprising:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the object control method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the object control method of any one of claims 1 to 7.
CN202111624863.2A 2021-12-28 2021-12-28 Object control method, device, equipment and medium Pending CN114356448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111624863.2A CN114356448A (en) 2021-12-28 2021-12-28 Object control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111624863.2A CN114356448A (en) 2021-12-28 2021-12-28 Object control method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114356448A true CN114356448A (en) 2022-04-15

Family

ID=81102390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111624863.2A Pending CN114356448A (en) 2021-12-28 2021-12-28 Object control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114356448A (en)

Similar Documents

Publication Publication Date Title
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN108268289B (en) Parameter configuration method, device and system for web application
CN111475142B (en) Method, device and equipment for generating applet file package
CN113259224A (en) Method and device for sending customer service data
CN107479868B (en) Interface loading method, device and equipment
CN111796821A (en) Page updating method and device
CN107038058B (en) Code processing method and device
CN112631679A (en) Preloading method and device for micro-application
CN114547024A (en) SQL statement risk detection method, device, equipment and medium
CN108304313B (en) Device, client and method for data testing
CN114168114A (en) Operator registration method, device and equipment
CN111190692A (en) Monitoring method and system based on Roc processor and readable medium
CN114115016A (en) Data processing method, device, equipment and medium
CN111273965B (en) Container application starting method, system and device and electronic equipment
CN109582388B (en) Parameter configuration method, device and equipment
CN112035117A (en) Page display system, method and device
CN111797387A (en) Method and device for intercepting plug-in
CN113556260A (en) Flow monitoring method and device, storage medium and electronic equipment
CN111078435A (en) Service processing method and device and electronic equipment
CN108037914B (en) Method and device for developing android native system by combining js
CN107885443B (en) Information processing method and device
CN111399926A (en) Method and device for downloading starting program
CN114356448A (en) Object control method, device, equipment and medium
CN113342376B (en) Method and device for upgrading operating system of Internet of things equipment
CN110874322A (en) Test method and test server for application program

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220718

Address after: 100190 Beijing Haidian District Zhichun Road 49 No. 3 West 309

Applicant after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 100102 Room 203, 14 and 19, floor 2, building 19, Wangjing Dongyuan seventh district, Chaoyang District, Beijing

Applicant before: Beijing Guangqiyuan Digital Technology Co.,Ltd.