I'm having a problem that I hope someone can assist with.

I am running a script to start a number of screen sessions

for i in `cat serverlist
do
screen -d -m -S $i ssh $i
done

We have the systems setup so we can ssh without a passkey, so I get a number
of screens.

Now, say I want to stuff a command..

screen -S machine1 -X stuff "who^J"

This works. However if I put it in for a for look

for i in `cat serverlist`
do
screen -S $i -X stuff "who^J"
done

It doesn't. Nothing gets sent to the screen sessions at all.

Anyone have a solution for this?

Thanks,
Nigel
-- 
View this message in context: 
http://www.nabble.com/Problems-scripting-screen-tp24223494p24223494.html
Sent from the Gnu - Screen mailing list archive at Nabble.com.



_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to