16:07:30< stan_theman> does anyone know how i might programatically add new windows to an existing screen session to execute a command? i want to run a for-loop that opens a window in an existing session and runs ssh to a box 16:08:18< stan_theman> is it something like figuring out how to make echo send the control character and a 'c'? or is there a nicer way that i missed in the man page? 16:26:51< Gedge> stan_theman: for i in 1 2 3; do screen -t window_$i ssh host_$i; done 16:27:17< Gedge> (if within screen) 16:27:47< Gedge> stan_theman: for i in 1 2 3; do screen -S session_name -p 0 -X screen -t window_$i ssh host_$i; done 16:27:50< Gedge> ifnot 16:31:12< stan_theman> aha! the second one is perfect 16:31:15< stan_theman> thank you Gedge! 16:32:23< Gedge> stan_theman: super :) ==== http://unix.stackexchange.com/a/8603