I have a python script which takes in an argument like so.
conda activate base python myScript.py arg1
I’m connected to my server over ssh so there will be no window system. I want to run 5 different with my script in parallel. So like,
#!/bin/bash
conda activate base
for i in arg1 arg2 arg3 arg4 arg5
do
python myScript.py $i
done
But this would only let the code run one after the other. How do I run it in parallel?