I have this in my Makefile:
run: for x in *.bin ; do ./$$x ; done
so that it runs all executable files one by one. I want to do this:
run: for x in *.bin ; do ./$$x &; done
so that it runs every executable file and puts it in the background. I get a syntax error for the above statement when I put an ampersand.
I donβt want to call make as make & , since this will start processes in the background, but still one by one, while I want individual executables to run in the background, so at any time I have several executables files running.
Thanks in advance.
jitihsk
source share