如何从C程序并行执行脚本

时间:2019-05-23 13:43:30

标签: c

我想从c程序执行脚本,希望它可以并行运行。因此,我已经编写了这段代码。

$ gitlab-runner exec docker job_setup

Runtime platform                                    arch=amd64 os=darwin pid=1688 revision=6c154264 version=11.11.0
Running with gitlab-runner 11.11.0 (6c154264)
Using Docker executor with image ubuntu:16.04 ...
Pulling docker image ubuntu:16.04 ...
Using docker image sha256:2a697363a8709093834e852b26bedb1d85b316c613120720fea9524f0e98e4a2 for ubuntu:16.04 ...
Running on runner--project-0-concurrent-0 via HappyMeal2.local...
DEPRECATION: this GitLab server doesn't support refspecs, gitlab-runner 12.0 will no longer work with this version of GitLab
Cloning repository...
fatal: repository '/Users/rui/(...)/helm-deploy-service-example' does not exist
ERROR: Job failed: exit code 1
FATAL: exit code 1

对于并行执行,我尝试将脚本放入线程中,但似乎无法正常工作。看起来该线程在整个脚本执行之前一直处于阻塞状态。有什么方法可以实现脚本的并行执行。

0 个答案:

没有答案