Processing method for linux shell script parallel execution and timeout automatic exit
A technology of automatic exit and processing method, applied in the field of Linux, can solve the problems of system burden, sub-command timeout not killing, low efficiency of parallel programs, etc., and achieve the effect of high parallel efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0053] Below with reference to accompanying drawing, the present invention is further described by specific embodiment:
[0054] main_proc.sh, the main program of a linux shell script parallelism and timeout automatic exit processing method, it includes:
[0055] 1) Start the subroutine sub_proc.sh in parallel, start 9 parallel subroutines through a for loop, the key code is as follows:
[0056] for i in $nodeList
[0057] do
[0058] sub_proc.sh $i $timeout &
[0059] done
[0060] 2) Wait for the end of the subroutine. Wait for the end of the subroutine through wait. The main program does not need to judge whether the subroutine has timed out. And if the subroutines are allowed to judge whether they time out in parallel, only one time is required.
[0061] sub_proc.sh, a subroutine of a linux shell script parallelism and timeout automatic exit processing method, which includes:
[0062] 1) Execute the command program and process the results obtained by the command ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
