[Top][All Lists]

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

Re: Sending commands by using 'screen -X stuff <command>\015' to a scree

From: Angel Blazquez
Subject: Re: Sending commands by using 'screen -X stuff <command>\015' to a screen session does not interpret '\015'
Date: Tue, 21 Dec 2004 11:40:58 -0000
User-agent: Mutt/

On Mon, Dec 20, 2004 at 04:50:24PM +0100, Michael Schroeder wrote:
> On Mon, Dec 20, 2004 at 04:13:16PM +0100, Angel Blazquez wrote:
> > I'm executing 'screen -X stuff ls\015' for sending 'ls' command to the
> > active window of a attached session, that has a shell running on it.
> > 
> > It just prints 'ls\015', it does not write ls and then ENTER for
> > executing the command. So it seems not to be understanding '\015'. I
> > don't understand why, because when i go to that attached session, and I
> > write 'stuff ls\015' in command mode, it works.
> If you do it with ^A: screen will parse the line. If you use -X,
> your shell will do it instead. Basically you have to make the
> shell insert a newline. Try pressing ^V and ENTER.
> (Or make screen re-parse the line: screen -X eval 'stuff ls\015')
> Cheers,
>   Michael.
> -- 
> Michael Schroeder           address@hidden
> main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

Michael, I tested it, and it is exactly what I needed.

Thanks a lot :)


reply via email to

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