How to use GNU parallel to run a list of commands where 4 commands run simultaneously
问题 I have list of shell commands that I'd like to call. Up to four processes shall run at the same time. As soon as the process count drops below 4, the next command is sent to the shell until all command have finished. I already got a "partly" working solution from stackoverflow fellows that however rely on wait -n which is not available on my debian wheezy installation. Link to other stackoverflow question One guy mentioned GNU Parallel. Can this be achieved? Any guidance is really appreciated