I have the bash file -
cat input.txt | parallel -j4 'python {}'
cp -r outputs /home/usr/my_outputs
I want to copy outputs to my_outputs only after all jobs finish executing. Presently, it looks like parallel returns immediately (after starting the jobs) and then cp -r is executed immediately, but I want to wait for the jobs to finish executing before I copy. How do I do this? Thanks!
EDIT: input.txt is like -
run1.py -n 5
run2.py -n 5
run3.py -n 5
run4.py -n 5