screen-users
[Top][All Lists]
Advanced

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

Re: Using 'stuff' to send characters from one account to a second accoun


From: Chris Jones
Subject: Re: Using 'stuff' to send characters from one account to a second account's session
Date: Mon, 24 Sep 2012 11:50:24 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Sep 23, 2012 at 03:25:28PM EDT, Lars Noodén wrote:

[..]

> What is the right syntax to send from the second account?

Sample that works here:

| % screen -S myscrn
| % screen -S myscrn -X 'stuff ls
'

. creates a screen session with socket name 'xscrn' - single window that
  runs my default shell.

. sends/runs 'ls' in that shell. '
' is entered by hitting CTRL-V and
  then hitting the <Enter> key.

To direct 'stuff' to a specific screen window:

| % screen -S myscrn -p 2 -X 'stuff ls
'

Counting from zero, '2' is the target session's third window.

CJ

-- 
Mooo Canada!!!!




reply via email to

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