Skip to main content
2 of 5
edited body; edited title
Wieland
  • 6.7k
  • 3
  • 31
  • 33

Parallel Python scripts on a remote machine

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* but it didn't work (parallel: Error: -g has been retired. Use --group [..]).

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?