i\'m fairly new in *nix. Is there a way to create a screen, which will immediately execute a given command sequence (with their own arguments)? Two hours of googling yields
I think that you can use this
function exec_in_screen() { name=$1 command=$2 screen -dmS $name sh; screen -S $name -X stuff "$command\n"; }
Then...
exec_in_screen "test" "ls"