Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何在gnu并行中运行多个组合命令(具有多个参数)?_Linux_Bash_Unix_Parallel Processing_Gnu Parallel - Fatal编程技术网

Linux 如何在gnu并行中运行多个组合命令(具有多个参数)?

Linux 如何在gnu并行中运行多个组合命令(具有多个参数)?,linux,bash,unix,parallel-processing,gnu-parallel,Linux,Bash,Unix,Parallel Processing,Gnu Parallel,我想并行使用GNU Parallel以不同的输入参数运行以下脚本: Rscript svmRScript_v2.copy.r 0.1 1 #(1) 0.1 and 1 are the input arguments Rscript svmRScript_v2.copy.r 0.1 2 #(2) Rscript svmRScript_v2.copy.r 0.1 5 #(3) Rscript svmRScript_v2.copy.r 0.1 10 #(4) 所以我要做的就是使用GNU并行程序并行运

我想并行使用
GNU Parallel
以不同的输入参数运行以下脚本:

Rscript svmRScript_v2.copy.r 0.1 1 #(1) 0.1 and 1 are the input arguments
Rscript svmRScript_v2.copy.r 0.1 2 #(2)
Rscript svmRScript_v2.copy.r 0.1 5 #(3)
Rscript svmRScript_v2.copy.r 0.1 10 #(4)
所以我要做的就是使用GNU并行程序并行运行“命令”(1),(2),(3),(4)

我最好的猜测是

parallel Rscript < svmRScript_v2.copy.r ::: 0.1 1 ::: 0.1 2 ::: 0.1 5 ::: 0.1 10
并行Rscript 我知道这是完全错误的,我得到了以下错误:
致命错误:无法打开文件“:”:没有这样的文件或目录

有什么建议我需要改变吗

提前感谢。

显而易见的是:

parallel Rscript svmRScript_v2.copy.r 0.1 ::: 1 2 5 10
但我觉得您可能需要
0.1
0.2
以后:

parallel Rscript svmRScript_v2.copy.r ::: 0.1 0.2 ::: 1 2 5 10
如果参数顺序错误:

parallel Rscript svmRScript_v2.copy.r {2} {1} ::: 0.1 0.2 ::: 1 2 5 10

您有机会观看吗?

Rscript是否需要文件参数?删除
Yes。最初,在命令行中,我将它作为
Rscript svmRScript\u v2.copy.r 0.1&
运行。它类似于bash program.sh arg1 arg2;arg1和arg2是程序的输入。