I am using a bash script and I need to create a screen, execute a specific command with a memory limit and detach the screen.I have been trying something similar:#!/bin/bashfor i in 1 2 3 4 5 6 7do    test=test$i    screen -dmS test    screen -r test -X ulimit -v 2199552    screen -r test -X ./my_command $idone...but it doesn't work. In particular, the screen is created, but ./my_command is not executed. Any hint?
Screen in bash script
bash;gnu screen