|
From: | Jonathan Chetwynd |
Subject: | Re: screen -x myname -X stuff 'mycommand' \n |
Date: | Wed, 27 Feb 2013 11:13:45 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
on the same box: $ screen -x myscreen -X stuff 'mycommand \n' echoes command to screen and runs fine, from a remote box: $ ssh address@hidden -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 connectedYou should use -X instead of -x. You can also use -p to select a windows, before starting the command (useful for "stuff" commands).
-- Jonathan Chetwynd http://www.gnote.org Eyetracking in HTML5
[Prev in Thread] | Current Thread | [Next in Thread] |