You don't have to "enter" the screen session to get it to run, just use `-dm` and it will start the session in detached mode:
for i in i 5 18 20; do
screen -dm -S "output_$i" ./run_my_program
done
You don't have to "enter" the screen session to get it to run, just use `-dm` and it will start the session in detached mode:
for i in i 5 18 20; do
screen -dm -S "output_$i" ./run_my_program
done