[Top][All Lists]

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

Passing string into stdin of screen

From: wcjh
Subject: Passing string into stdin of screen
Date: Wed, 22 Dec 2010 11:35:53 -0800 (PST)

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,
2. Pass a string into stdin of a running screen session?

My thought for option #2 was to use a combination of 'screen -X' and 'eval
STR', where STR is the string I want to pass in. However, none of the
following combinations were successful:
screen -X "eval STR"
screen -X "colon eval STR"
screen -X "colon"; screen -X eval STR"

Does anyone have any suggestions on how to correctly accomplish the above
Any suggestions about how I can pass strings directly into the serial device
would also be welcomed.

Thank you,

View this message in context:
Sent from the Gnu - Screen mailing list archive at

reply via email to

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