On Wed, Mar 19, 2008 at 03:27:55PM -0400, Andy Harrison wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I was wondering about this behavior from screen.  When I run this
> script, it shows me that screen always thinks it is on window 0, even
> when it has executed the 'other' command and I'm now looking at the
> window I was previously using.  Is this expected behavior?  If so, is
> there a way to make it behave so that screen will keep track of what
> the currently active window actually is?
> 
> 
> #!/bin/sh
> 
> screen -X echo 'number is...'
> sleep 3
> screen -X number   # shows "This is window 0..."
> [...]

Are these sleeps supposed to avoid executing the commands in the wrong
order?  Would it be better to simply do a single -X eval:

screen -X eval 'echo "number is..."' number


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to