Execute Automation Scripts
 Updated: 2025/10/10
 Read Time: 6 min
The cloud control backend supports single-device and multi-device batch script execution, enabling task scheduling, real-time monitoring, and quick termination operations to improve operational efficiency.
Cloud Control Backend Automation Script Operation Guide
The cloud control backend supports single-device script execution and batch script execution, facilitating task scheduling and real-time monitoring for operations personnel in multi-device environments.
Single-device Script Execution
Operation Steps
- Find the target device in the group control screen casting page.
 - Right-click the device → Select Scripts → Select Script Code to open the script code list.
 - Select the content to execute:
- Scripts: Need to be configured once, then can be directly executed and used for batch operations.
 - Code: Temporary code snippets for execution, can be directly clicked to execute without additional configuration.
 
 - Click the script or code to execute the operation.
 - If you need to stop execution:
- Click Terminate Script → Stop the script currently running on the device.
 - Click Terminate Code → Stop the code currently running on the device.
 
 - View execution logs:
- Can view the execution logs of the device, facilitating troubleshooting of exceptions or debugging scripts.
 
 
⚡ Tip: Single-device execution is suitable for temporary operations or debugging scripts, quickly verifying script functionality.
Batch Script Execution
Operation Steps
- Batch select target devices in the left device list.
 - Select the content to execute in the script/code list area:
- Scripts: Need to be configured once, then can be executed in batch.
 - Code: Can be directly clicked to execute without additional configuration.
 
 - Click the Execute button, and the backend will simultaneously perform operations on all selected devices.
 - Stop execution:
- Terminate Script → Stop scripts running on all devices.
 - Terminate Code → Stop code running on all devices.
 
 - Real-time monitoring:
- If Real-time Logs are enabled, you can view the execution status and output logs of each device in real-time, making it easy to quickly identify abnormal devices.
 
 
⚡ Tip: Batch execution is suitable for task scheduling and unified operations across multiple devices, improving operational efficiency.
Operation Approach & Best Practices
- Unified Operation Entry
- Maintain consistent logic for single-device and batch operations to reduce learning costs.
 
 - Clear Task Management
- Distinguish between scripts and code before execution, support real-time termination during execution, and retain logs after execution.
 
 - Real-time Logs & Feedback
- Logs display device name, execution status, and timestamp, allowing operations personnel to quickly locate issues.
 
 - Exception Handling
- When execution fails or devices go offline, provide clear prompts in the logs for easy troubleshooting.
 
 - Recommended Usage Scenarios
- Single-device Execution: Debugging scripts, temporary tasks, function verification.
 - Batch Execution: Multi-device task scheduling, unified operations, scheduled task execution.
 
 
Tips
- Ensure target devices are online and accessible to the backend.
 - It is recommended to configure scripts in advance for more efficient batch execution.
 - After enabling the real-time log function, execution exceptions can be immediately detected, improving operational efficiency.