I want to run the following scripts with different input arguments using GNU Parallel in 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)
So all I wanna do is run the 'commands' (1),(2),(3),(4) in parallel using GNU parallel.
My best guess was something like
parallel Rscript < svmRScript_v2.copy.r ::: 0.1 1 ::: 0.1 2 ::: 0.1 5 ::: 0.1 10
I know this is entirely wrong and I'm getting the following error:
Fatal error: cannot open file ':::': No such file or directory.
Any suggestion what I need to change?
Thanks in advance.
Rscriptrequire a file argument? Drop the<, since it appearsRscriptis trying to read:::as its argument rather thansvnRScript_v2.copy.r.Rscript svmRScript_v2.copy.r 0.1 1 &. It's like bash program.sh arg1 arg2 ; arg1 and arg2 are the inputs to the program.