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是程序的输入。