[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
Re: Sending commands by using 'screen -X stuff <command>\015' to a screen session does not interpret '\015'
Mon, 20 Dec 2004 16:50:24 +0100
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')
Michael Schroeder address@hidden