Similar to this thread, I have a remote machine with 8 cores that I want to use for running scripts in parallel (1 script per core at a time).
However, I don't have multiple bash scripts but a single Python3 script that I want to run with different inputs. I tried parallel python3 -c main.py input*
, parallel -j 100% python3 -c main.py ::: input*
, and parallel python3 main.py input*
but nothing worked.
The exact error message is:
parallel: Error: -g has been retired. Use --group.
parallel: Error: -B has been retired. Use --bf.
parallel: Error: -T has been retired. Use --tty.
parallel: Error: -U has been retired. Use --er.
parallel: Error: -W has been retired. Use --wd.
parallel: Error: -Y has been retired. Use --shebang.
parallel: Error: -H has been retired. Use --halt.
parallel: Error: --tollef has been retired. Use -u -q --arg-sep -- and --load for -l.
I don't understand how this is related to my input. I didn't use any of these options.
I'm fairly new and inexperienced with Unix and couldn't get it to work myself or with googling. Any help is appreciated. Do I have to write a shell-script to help me with that?
parallel --version
orman parallel
should list it somewhere) – Wieland Dec 01 '16 at 09:55GNU parallel 20141022
– stefanbschneider Dec 01 '16 at 10:12PARALLEL
set in your environment. Check withecho $PARALLEL
. Try preceding your command withPARALLEL=
, as inPARALLEL= parallel python3 ...
all on one line. – meuh Dec 01 '16 at 18:05PARALLEL
is set and precedingPARALLEL=
leads to the same error message. Can I somehow reinstallparallel
? Does it even make sense? – stefanbschneider Dec 01 '16 at 18:59