screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems scripting screen


From: Nelgin
Subject: Problems scripting screen
Date: Fri, 26 Jun 2009 09:34:45 -0700 (PDT)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]