Re: Problems scripting screen

2009-10-03 Thread Gerald Young
On Saturday 03 October 2009 11:34:32 clemens fischer wrote: > Is the "^J" a literal newline or the two characters > "^" and "J" in both cases? Screen itself interprets the two characters "^" and "J" as a newline. So type the command with the two characters, and when the "stuff" command is execut

Re: Problems scripting screen

2009-10-03 Thread clemens fischer
On Fri-2009/06/26-18:34 Nelgin wrote: > 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. I'd write: >>screen -S "

Re: Problems scripting screen

2009-06-26 Thread Micah Cowan
Nelgin wrote: > 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 The most obvious explanation is that your for-loop isn't doing what you th

Problems scripting screen

2009-06-26 Thread Nelgin
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