To pass a command to a screen session to be intrepreted from stdin use the
following:
screen -X stuff "echo hello^M"
However make sure to generate the ^M by pressing Ctrl-V Enter.
On Wed, Dec 22, 2010 at 2:35 PM, wcjh wrote:
>
> I'm using 'screen' as a terminal emulator to communicate to a s
I'm using 'screen' as a terminal emulator to communicate to a serial device.
However, I would like to script communication with this device.
Does anyone know how I can either:
1. start a screen terminal with a command line argument that will be
interpreted as stdin,
or
2. Pass a string into stdin