[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: |
Michael Schroeder |
Subject: |
Re: Sending commands by using 'screen -X stuff <command>\015' to a screen session does not interpret '\015' |
Date: |
Mon, 20 Dec 2004 16:50:24 +0100 |
User-agent: |
Mutt/1.4.2.1i |
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);}