linux - How to run multiple composed commands (with multiple arguments) in gnu parallel? -
i want run following scripts different input arguments using gnu parallel in parallel:
rscript svmrscript_v2.copy.r 0.1 1 #(1) 0.1 , 1 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) so wanna run 'commands' (1),(2),(3),(4) in parallel using gnu parallel.
my best guess
parallel rscript < svmrscript_v2.copy.r ::: 0.1 1 ::: 0.1 2 ::: 0.1 5 ::: 0.1 10 i know entirely wrong , i'm getting following error: fatal error: cannot open file ':::': no such file or directory.
any suggestion need change?
thanks in advance.
the obvious is:
parallel rscript svmrscript_v2.copy.r 0.1 ::: 1 2 5 10 but have feeling might want 0.1 , 0.2 later:
parallel rscript svmrscript_v2.copy.r ::: 0.1 0.2 ::: 1 2 5 10 if order of arguments wrong:
parallel rscript svmrscript_v2.copy.r {2} {1} ::: 0.1 0.2 ::: 1 2 5 10 did have chance watch the intro videos , walk through tutorial?
Comments
Post a Comment