I am running against the clock for programming, in which I have to simultaneously run multiple instances of the same program on the same computer. I am currently running instances one at a time by pressing Ctrl + z to pause them and then doing 'bg% # ' to resume execution in the background.
This is very tedious and takes a lot of time so that every time I needed to test a small change in my application, so I want to write a bash script that will run several instances for me, t know how to perform background switching in a script.
Can someone please tell me how can I write a simple script that will run an old command, pause it and resume it in the background?
thanks
source share