screen-users
[Top][All Lists]
Advanced

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

Re: Problems scripting screen


From: clemens fischer
Subject: Re: Problems scripting screen
Date: Sat, 03 Oct 2009 18:34:32 +0200
User-agent: tin/1.9.4-20090211 ("Rieclachan") (UNIX) (Linux/2.6.31.1-spott (i686))

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 "$i" -X stuff "who^J"<<, ie. quote the variable
as well.  But for testing, try >>echo screen -S "$i" -X stuff "who^J"<<.

This will show the command as the shell sees it.  Is the "^J" a literal
newline or the two characters "^" and "J" in both cases?


clemens, being late, he knows.





reply via email to

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