Hello I'm writing a bash script where I have to restore around 8+ big sets of ip with ipset-restore command.
Actually my shell script basically has a list like
ipset-restore < list1.txt ipset-restore < list2.txt ipset-restore < list3.txt ...
doing it in this way is pretty slow and because machine has resources and ipset is multhitreaded and can perform various operations in parallel I would like to cast many ipset-restore at once.
I tought of using nohup however doing it this way would make me being unable to see if the processes have finished before carry out new instructions.
I need that every process have finished before proceeding next.
(basically I need to wait for the slowest before proceeding).
Bonus: it exists a linux package to do so with also monitoring the resources so that spawn of processes is handled automatically without hugging all the resources?
ipset-restore
at once" and "I need that every process have finished before proceeding next" contradictory.