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

Gerald Young <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization Azetti Networks
Message-ID <[email protected]>
On Monday, September 24, 2012 11:03:16 AM Lars Noodén wrote:
> On 09/24/2012 06:50 PM, Chris Jones wrote:
> > 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
> 
> I'm still getting the 'No screen sessions found' error.  Are you sure
> that 'stuff' is being sent from a second user account.  If both
> terminals are logged into the same account, 'stuff' works nicely.  If
> they are both logged into separate accounts, then 'stuff' gives that
> error even if multiuser otherwise works.
> 
> Regards,
> /Lars
> 

Issue is with -X option it seems.

This works:
screen -S gerald/SESSION -list

While this doesnt:
screen -S gerald/SESSION -p 0 -X stuff "ls"

I get the same "No screen session found." error.

It seems like the -X option simply ignores the specified user and looks for the 
session in the current user, which is not found.

Regards,
Gerald

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.