on the same box from another term:

$ screen -x myscreen -X stuff 'mycommand \n'

echoes command to myscreen and runs mycommand,

from a remote box running a bash script:

$ ssh me@myip -t "screen -x myscreen -X stuff 'mycommand \n' "

opens myscreen but mycommand is not echoed nor does it run

further ideas please

regards

Jonathan

On 26/02/13 21:38, Bruno Cudini wrote:
Hi,

On Tue, Feb 26, 2013 at 11:57:40AM +0000, Jonathan Chetwynd wrote:
How from a script to run a command once attached to a remote screen?

$ screen -x myscreen flite -t connected
You should use -X instead of -x. You can also use -p to select a
windows, before starting the command (useful for "stuff" commands).






_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to