When running jobs that output data, you often do not want the output
of multiple jobs to run together. GNU parallel defaults to grouping
the output of each job, so the output is printed when the job
finishes. If you want the output to be printed while the job is
running you can use -u.
您可能需要考虑使用GNU Parallel。默认情况下,输出将被缓冲,直到实例完成运行:
我相信运行脚本的最佳方法是vai:
或者
^{pr2}$可以使用
-j
标志指定要运行的进程数,即-j4
。在Parallel的好处是它支持输入参数的笛卡尔积。例如,如果要为每个文件迭代一些附加参数,可以使用:
这将导致跨多个进程运行以下操作:
祝你好运!在
相关问题 更多 >
编程相关推荐