[Top][All Lists]

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

Re: how to send commands to running screen sessions

From: Andy Harrison
Subject: Re: how to send commands to running screen sessions
Date: Fri, 16 Feb 2007 15:51:06 -0500

On 2/15/07, Henrique Niwa <address@hidden> wrote:
Sometime ago i saw an email from the list explaining
how to send commands to matching windows.
like, for windows named sh send command xyz
i accomplished some results using the stuff command,
but i could not replicate the enter key, nor send it
to multiple windows matching some pattern.
Does anybody knows the correct syntax of the command?

You can also use the -X param.  So if I had two different instances of screen running, one of them had sessionname set to FooScreen, I would send a command like:

screen -S FooScreen -X select 1

This would cause screen 1 to be selected within the FooScreen instance.

Andy Harrison
reply via email to

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